DeleteUserFromGroup
Removes a user from a specified SharePoint group. Useful for revoking access when user roles change.
Stored Procedure-Specific Information
To execute this procedure, enter:EXEC DeleteUserFromGroup LoginName='i:0#.f|membership|[email protected]', Group='My Group'
Input
| Name | Type | Required | Description |
| LoginName | String | True | The login name of the user to be removed from the specified SharePoint group. Example: 'DOMAIN\\JohnDoe' or '[email protected]'. |
| Group | String | True | The name of the SharePoint group from which the user should be removed. Example: 'Project Managers' or 'Site Admins'. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the user was successfully removed from the group. Returns 'true' if the operation was successful, otherwise 'false'. |