Set Permission
Hello,
can you help me how I can set premission from a list du a sub folder.
In the past I have done it with the folder structure management. How can I do it in Sharepoint Online with Skybow:
Thank you for help
Kind regards
Nicole
-
Hi Nicole
Permissions on items and folders can be set by the SharePoint REST API performed as HTTP Request Actions in the Triggered Actions.
Check out this article: Set single item permissions using skybow Triggered ActionsFor the call you need to know the ID of the item/folder you want to set the permission on, the user's ID you want set the permission for, and the roleDefId for i.e. "Lesen"/"Bearbeiten"/etc. This Id can be read out manually from the SP or dynamically read by some previous actions:
var response = [[@Actions.Send_HTTP_request_Get_Role_Definitions.ResponseBody]].value;
var id = 0;
response.forEach(function(res){
if(res.Name == 'Bearbeiten'){
id = res.Id;
}
});
return id;0
Please sign in to leave a comment.
Comments
1 comment