cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Rest Api Change Folder Permission

suayb58
Champ on-the-rise
Champ on-the-rise

Hello everyone.i want to change the   user role information of a folder permission  in alfresco using rest api.But I could not find it in the alfresco rest document.I just found the get service as in the picture.I want update service.Do you have any information on this?

1 REPLY 1

jmorrow
Champ in-the-making
Champ in-the-making

Using older 5.0.c Community version, there is this in the webscripts:

set-permissions
POST /alfresco/s/slingshot/doclib/permissions/{store_type}/{store_id}/{id}
---
Document List Component - set permissions data webscript
---

Apparently there is a specific JSON body that needs to be sent. There is no documentation on it. One site mentioned it should take this form below:

{ "permissions": [ { "authority":"danelige", "role":"Collaborator", "remove":true }, { "authority":"danelige", "role":"SiteManager" } ] ,"isInherited":true}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

This returns 200 OK and result body consisting only of: "{}" 

However it does have the desired effect... inheritance can be toggled and users added as locally set by using above notation.