6

Permissions

Can I enable/disable the "Inherit Security settings from parent" option for a folder via core service? I searched for options here in folderData.IsPermissionsInheritanceRoot.

Please correct me know if I am wrong here.

Also , can I get owning repository /publication of a folder via core service ?

2 Answers 2

7

OrganizationalItemData has a property .IsPermissionsInheritanceRoot that you can use for this.

3
  • I have tried the below and permissions are not getting set in the Tridion CME. Am I missing something ? folderData.IsPermissionsInheritanceRoot= false; client.Save(folderData, new ReadOptions());
    – User344
    Commented Jul 8, 2013 at 12:03
  • 2
    Just FYI: Setting it to "false" ("not a new root") means that it will inherit the security from its parent, which is the default. It sounds like you were looking for the opposite, in which case you will want to specify "true". Commented Jul 8, 2013 at 12:13
  • Peter is right. The following should give you what you need: folder.IsPermissionsInheritanceRoot = true; Commented Jul 9, 2013 at 18:15
6

IsPermissionsInheritanceRoot

Gets or sets a value indicating whether the item inherits permissions from the parent item.

For the second question - use

folder.BluePrintInfo.OwningRepository

(I assume that folder is of type FolderData)

2
  • I have tried the below and permissions are not getting set in the Tridion CME. Am I missing something ? folderData.IsPermissionsInheritanceRoot= false; client.Save(folderData, new ReadOptions()); thanks for the second answer, am able to retrieve the owning repository.
    – User344
    Commented Jul 8, 2013 at 12:04
  • Sorry - I had to specify all description from documentation. <value><c>true</c> if permissions are specified for item itself; otherwise, <c>false</c>, if item inherits permissions from the parent item.</value>
    – Syav4eg
    Commented Jul 8, 2013 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.