cancel
Showing results for 
Search instead for 
Did you mean: 

change folder permission using API

nancyaggarwal
Champ in-the-making
Champ in-the-making
Hi,


I am working on a use case where i have one client application which integrated with alfresco using CMIS. I am using external authentication by modifying header in request for authentication in alfresco. Till now i am able to create session with non-admin user using cmis api.

Now there is one folder in repository by the name testing and i want the non-admin user say "abc" should have the permission on that folder with the role contributor and this i want to achieve by rest api or some other api. I don't want the admin to do this rather non-admin user should do this


Please help me with this. I am not able to find any solution for my use case.



Thanks
Nancy
4 REPLIES 4

romschn
Star Collaborator
Star Collaborator
Take a look at the following forum post. See if it can be helpful to you.

https://forums.alfresco.com/forum/developer-discussions/web-scripts/change-inherit-parent-space-perm...

Hope this helps.

Hi Ramesh,

Above solution seems to be helpful but i want to add the user with the appropriate permission to the node. Is there any example for the same?


Regards,
Nancy

Could you please provide more detail on the scenario like what kind of permission you want to set on a node which the web script mentioned in above post is not taking care of. Just wanted to understand, how above web script is not useful in your scenario.

I wanted to add current logged in user with the role of contributor to the folder node.



Regards,
Nancy