Content Automation : How to Block permisions inheritance programmaticaly

Hello, I am looking a way, using the automation api, to block inheritance from a specific document…

I only found Document.RemoveACL and Document.SetACE : they both seem to not be able to do what i need.

Is there a way to do that ?

Thank you for your help

0 votes

1 answers

1373 views

ANSWER



I think those are the only two functions you need. On the current document use Document.RemoveACL to remove the ACL 'local'. Then use Document.SetACE with grant = false for everyone for everything on local. And then use Document.SetACE to grant = true the permissions you do want on the document. I have had no need to try this but it mirrors the programmatic approach.

See the automation operations index for details.

0 votes



Thank you very much for your precise answer to my question. It works but I wonder why the user interface doesn't reflect the "Document.SetACE with grant = false for everyone for everything on local" by checking the blocking inheritance in the administration tab ?
10/07/2013

It should reflect it. Have you done a refresh in the UI? Have you used the "local" ACL?
10/07/2013