Remove user from SharePoint group

  • 24 January 2019
  • 3 replies
  • 44 views

Badge +2

I have a Nintex workflow set on a "Employee Directory" custom list that adds a user to a specific SharePoint group when a new employee is added to that list, it works fine.  What I need to now is to have a workflow that will REMOVE a user if they are deleted from this group.  Is this possible?


3 replies

Badge

Hi Tonya Rezor

Check out the following answer may be useful

Delete users from SharePoint Group is follows
To delete users from a SharePoint site:

  1. In your site, click Site Contents, and then click Settings.
  2. Under "Users and Permissions", click People and groups.
  3. On the left, select the group from which you'd like to remove the users.
  4. Use the checkboxes to select the users you want to delete.
  5. Click Actions, and then select Remove Users from Group.
  6. Click OK to confirm the deletion.

Thank you 

Suresh Prabhu

Userlevel 5
Badge +14

how do you add them to the group?

if you're on an enterprise version, there is available dedicated action - Remove user from AD group.

https://help.nintex.com/en-US/nintex2013/help/#Workflow/RootCategory/Actions/Nintex.Workflow.RemoveUserFromADGroup.htm%3… 

if you aren't on enterprise you will have to make direct call to SP's UserGroup.asmx webservice and it method(s) 

RemoveUserFromGroup or RemoveUserCollectionFromGroup

UserGroup Members (WebSvcUserGroup) | Microsoft Docs 

Badge +6
That's how to do it manually. How is it done via workflow? There is action=Add User to Group but there is no corresponding action to remove a user from a group. As noted below, there is an option to remove a user from an AD Security group, but that is not the same thing.

Reply