AddUserToGroup
Adds a user to a specified SharePoint group to manage their access and permissions.
Stored Procedure-Specific Information
To execute this procedure, enter:EXEC AddUserToGroup Groupname = 'Site001 Owners', LoginName = 'i:0#.f|membership|[email protected]'
Input
| Name | Type | Required | Description |
| LoginName | String | True | The login name of the user to be added to the SharePoint group. |
| Group | String | True | The name of the SharePoint group to which the user is added, such as 'Project Managers' or 'Site Admins.' |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the operation to add the user to the group was successful. Returns 'true' for success and 'false' for failure. |