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
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.