ADO.NET Provider for Microsoft SharePoint

Build 25.0.9539

DeleteUserFromGroup

Removes a user from a specified SharePoint group. Useful for revoking access when user roles change.

Stored Procedure-Specific Information

The DeleteUserFromGroup stored procedure removes a user from a SharePoint group. The LoginName parameter specifies the user's login name, and the Group parameter specifies the group name.

To execute this procedure, enter:

EXEC DeleteUserFromGroup LoginName = 'i:0#.f|membership|[email protected]', Group = 'Site Members';

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'.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539