We need to provide restricted access to users at subfolder level within a repository such that the users can able to view only their folders and not the other ones. However we are unable to achieve it. Following are the access rules set up.
[Repo:/Folder1]
User1 = rw
[Repo:/Folder2]
User2 = rw
When the above rules are set, User1
and User2
are unable to access the repository Repo
and "Forbidden Access to Repository" error is shown. To resolve this error we tried providing an additional read
access at repository level as below.
[Repo:/]
User1 = r
User2 = r
This resolved the error however, User1
was able to view all files under Folder2
and User2
was able to view files under Folder1
. Our requirement is to provide rw
access only to the concerned folders and hide the rest of the folders. User1
should not know that Folder2
exists under repository Repo
and User2
should not know that Folder1
exists. Please guide on how this can be achieved.
The requirement has been handled as below thereby hiding the folders visible to the users.
[Repo:/]
User1 = rw
User2 = rw
[Repo:/Folder1]
User1 = rw
User2 =
[Repo:/Folder2]
User1 =
User2 = rw
The access rules are going to grow if more sub-folders are added, however currently it is solving our issue as the number of sub-folders are less. Similarly creating appropriate user groups has helped in proper maintenance.