Creating a global media library for all users

This article describes how to set up a global media library for every user with restricted access to one folder.
Please follow these steps.

1) Use just one media library and one role, which has sufficient rights to access the library.
2) Every user has an own directory named after his login name and has access just to this folder.
3) Set the path property of the media library web part to {%currentuser.username%}. This will generate the mentioned directory and will restrict the user to this directory.
4) In ~CMSModules\MediaLibrary\Controls\MediaLibrary\MediaLibrary.ascx change the MediaLibraryRootFolder property the same way as in the properties of the web part, to the current user login name.

See also:

Applies to: Kentico CMS 4.0
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.