How do i set Access rights on UnifiedDirectoy?

Vote:
 

I'm trying to create a directory and set accessright on it.

I create the directory like this:

globalDir.CreateSubdirectory("subdirectory");

I then try to set access rights using UnifiedDirectoy.ACL.Add. When I add a AccessControlEntry with the Add method I get this error:

EPiServer.Core.EPiServerException: Cannot modify inherited ACL

 

Is there some way to create a directory without inheriting the ACL or can I bypass it in some way?

 

 

#46086
Nov 26, 2010 10:30
Vote:
 

check the discussion on following post, perhaps its of some help

http://world.episerver.com/Templates/Forum/Pages/thread.aspx?id=24170

#46098
Nov 26, 2010 14:36
Vote:
 

Thanks, it was helpfull!

ACL has an IsInherited property that needs to be set to false

#46099
Nov 26, 2010 15:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.