Hello,
I would like to set list permission (not list item).
How can i do that with Nintex Workflow in O365 ?
Thanks in advance
Manage list permission
Best answer by navik
Thanks for your response.
So I did three HTTP requests :
1] Get my group ID :
GET
<site_url> /_api/web/sitegroups?$select=Id,Title&$filter=Title eq '<GroupName>'
2] Break role inheritance on my list :
POST
<site_url> /_api/web/Lists/Getbytitle('<ListName>')/breakroleinheritance(true)
3] Add my group permission to this list :
POST
<site_url> /_api/web/Lists/Getbytitle('<ListName>')/roleassignments/addroleassignment(principalid=<GroupID>,roledefid=<RoleDefinitionID>)
Note : Thanks to 'SviPullo' SviPullo: SharePoint RoleDefinition Ids
Role Definition Name | Role Definition Id
Full Control 1073741829
Design 1073741828
Edit 1073741830
Contribute 1073741827
Read 1073741826
View Only 1073741924
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.