Skip to main content
Nintex Community Menu Bar

About granting permission with "Call a SharePoint web service"

  • Jul 21, 2022 9:30 AM UTC
  • 4 replies
  • 168 views
  • Translate All

I'm using the "Call a SharePoint web service action" feature to grant permissions to a specified item in a SharePoint list.
URL:

{SiteUrl}​/_api/Web/Lists/getByTitle('{List Name}​')/Items({ID})/roleassignments/addroleassignment(principalid={Approver Group (ID)}, roledefid=1073741827)

 

The account to be granted has acquired the group ID from the specified item in the SharePoint list.

24575iA5DCA93962C6BB87.png

24576iDA6882F12934476E.png


With this feature
If multiple accounts are set in one item, will the loop function call the API for the number of accounts?

I would like to know if there is a way to grant permissions to multiple accounts at once.

4 replies

Sven
Forum|alt.badge.img+7
  • Novice
  • Jul 26, 2022 6:35 AM UTC

Hi @RN , 

 

i am not 100 % sure, if i understood you question correctly, but yes if you use a loop, you can call this action twice or how often you want to loop throught.

 

Sven

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Jul 26, 2022 10:25 PM UTC

Hi,

 

The SharePoint Online Update Item Permissions Action can update the permissions on an item with multiple accounts at the one time.

https://help.nintex.com/en-US/nwc/Content/Designer/Actions/SharePointOnline-UpdateItemPermission.htm

Translate

  • Author
  • Jul 27, 2022 8:41 AM UTC

SimonMuntz San

 

Thank you for the information.

With "Update item permissions", you can grant permissions to multiple accounts at once.

 

BestRegards

Translate

  • Author
  • Jul 27, 2022 8:44 AM UTC

Sven San

 

Thank you for your reply.
When using it, specify the number of loops and execute it.

 

BestRegards

Translate