cancel
Showing results for 
Search instead for 
Did you mean: 

stop permissions inheritance with cmis

fatma19
Confirmed Champ
Confirmed Champ

I am currently using cmis to communicate to alfresco,and i want to create folders with cmis but i don't like those folders to inherite permissions so how can i do that with cmis? 

By the way my app is written in java.
Thank you in advance

3 REPLIES 3

cesarista
World-Class Innovator
World-Class Innovator

Hi:

As far I know, CMIS provides a very basic management of Alfresco permissions (cmis:read and cmis:write). But surely, you can set up a content rule that may be triggered from CMIS for disabling inheritance in case of folder creation.

Regards.

--C.

ok do you have an idea how to do that with the alfresco api ? 

cesarista
World-Class Innovator
World-Class Innovator

Yes, first create a content rule in rootPath folder of your application in the repository. This rule will apply over all content created of type Folder (recursively) and runs a JS-API script placed in /Data Dictionary/Scripts. The script should do something like this:

setInheritsPermissions | Alfresco Documentation 

And then you should create CMIS folders in the way you are doing.

Regards.

--C.