UpdateGroup
Update a group in your SharePoint site collection.
Stored Procedure-Specific Information
The UpdateGroup stored procedure modifies the properties of an existing SharePoint group. You can update the group's description, owner, and other settings.To update a group's description and owner, enter:
EXEC UpdateGroup Name = 'Test Group', Description = 'Updated group description', OwnerName = 'Site Owners', OwnerType = 'group';
The OwnerType parameter can be set to 'group' or 'user' depending on the type of owner being assigned.
Input
| Name | Type | Required | Description |
| Name | String | True | The current name of the group. |
| NewName | String | False | The new name of the group. |
| Description | String | True | The description of the group. |
| OwnerName | String | True | The login name/name of the user or group who should be the owner of the group. |
| OwnerType | String | True | The type of the group's owner.
The allowed values are user, group. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the group was successfully updated. Returns 'true' for success and 'false' for failure. |