CData Python Connector for Microsoft SharePoint

Build 25.0.9454

AddUserToRole

Assigns a user to a specified role in SharePoint. Useful for controlling access levels within the site.

Input

Name Type Required Description
LoginName String True A comma-separated list of login names of the users to be assigned a role. Use the format 'DOMAIN\\username' for Active Directory users or email addresses for Azure AD users. Example: 'Domain\\user1,Domain\\user2'.
Role String True The name of the SharePoint role (permission level) to assign to the specified users. Examples include 'Full Control', 'Edit', 'Read'.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation to assign the role was successful. Returns 'true' for success and 'false' for failure.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454