ramanjjilunaidu
Forms Fledgling

How to get SharePoint group through Nintex workflow and add users to the group

Dear Team,

I have to query the SharePoint group (not person or group column within the list ) and add users and grant permissions to that group through workflow.

 

Regards,

0 Kudos
Reply
4 Replies
kchaluvadi
Workflow Veteran

Re: How to get SharePoint group through Nintex workflow and add users to the group

Hi
Not sure what is your exact requirement, easy way is to create a list with Title and SP Group Name (single line text) columns. Fill the Title column with some identifier, and fill the SP Group name in "SP Group Name" column. Use Query List action to query this list filter by TItle column and get the "SP Group Name" column.
Otherwise, build a Dictionary variable with key/value pair and read the group name based on key value.
Having list is easy to maintain, with dictionary variable, you have to update the workflow for any changes.
Title SP Group Name
Visitors Visitors Group
Members Members Group
Approvers Approvers Group
Owners Owners Group Name
0 Kudos
Reply
ramanjjilunaidu
Forms Fledgling

Re: How to get SharePoint group through Nintex workflow and add users to the group

Hi,

How to add user to SharePoint group through workflow as every time the user list gets changed on item creation.

I have created this group Project Team manually. 

ramanjjilunaidu_1-1624374189208.png

Regards,

 

0 Kudos
Reply
kchaluvadi
Workflow Veteran

Re: How to get SharePoint group through Nintex workflow and add users to the group

If you are using Nintex for SharePoint on-premise, there is no action to add a user to SharePoint group, "Add user to a AD group" allows you to add to AD, not to SharePoint group.

But you can try using web service action (works for 2013, 2016 and 2019), here is the link

If you are using Nitex for SharePoint Online, you can use action, "Office 365 Add User to Group" action. 

0 Kudos
Reply
ramanjjilunaidu
Forms Fledgling

Re: How to get SharePoint group through Nintex workflow and add users to the group

Hi,

This works for the fields within the list not SharePoint groups created at site level.

Regards,

0 Kudos
Reply