ADO.NET Provider for Microsoft SharePoint

Build 26.0.9770

DeleteUserFromRole

Removes a user from a specified SharePoint role. Helps maintain security by adjusting permissions as needed.

Stored Procedure-Specific Information

To execute this procedure, enter:
EXEC DeleteUserFromRole LoginName='DOMAIN\user1,DOMAIN\user2', Role='My Role'

Input

Name Type Required Description
LoginName String True A comma-separated list of login names for the users who should be removed from the specified role. Example: 'Domain\\user1,Domain\\user2'.
Role String True The name of the SharePoint role to unassign from the specified users. Example: 'Contributors', 'Site Owners', or 'Read-Only'.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful. Returns 'true' if the users were successfully removed from the role, otherwise 'false'.

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