What SharePoint APIs are used to execute Nintex Office365 update item permissions action?

  • 14 November 2020
  • 0 replies
  • 8 views

Userlevel 3
Badge +8

Question

What SharePoint APIs are used to execute Nintex Office365 update item permissions action?

 

Answer

The Nintex Office365 update item permissions action uses a couple of SharePoint API calls as described briefly below: 

 1. Get SP Web using CSOM (SharePoint Client Object Modal)
 2. Get SP List using CSOM.Web.Lists
 3. Get List Items using CSOM.List.GetItems (Items based on the configured query / CAML)
 4. Inherit permission using CSOM.ResetRoleInheritance (If Inherit permissions from parent option is selected)
 5. Remove existing permissions using CSOM.RoleDefinitionBindings.RemoveAll() (If Remove Existing Permission option is selected)
 6. Resolve Users/Groups using CSOM.ResolvePrincipal 
 7. Add permissions using CSOM.RoleAssignment

Calls to endpoints 4 -7 depend on the number of users and targeted list items. Bare in mind queries are executed in batches of 150 items.

 

Additional Information

 


0 replies

Be the first to reply!

Reply