SP.GroupCollection.remove(group) Method
Applies to: SharePoint Foundation 2010
Removes the specified group from the collection.
SP.GroupCollection.remove(group);
Parameters
group
A SP.Group Class object that represents the group to be removed.It must not be null.
Type: SP.Group
Applies To
Exceptions
Exceptions |
Descriptions |
---|---|
Occurs when deletion of DistributionGroup fails, or approval denied by the Microsoft SharePoint Directory Management service, or duplicate e-mail in the Directory Management service, or invalid argument for the Directory Management service, or Directory Management service not configured, or access denied in Directory Management service, or object not found in Directory Management service, or Directory Management service reports an error that is not recognized. Error code: -2146232832. |
|
User cannot be found, or cannot modify the UserCollection, or inherited Web site cannot be deleted. Error code: -2146232832. |
|
The Administrators site group collection cannot be deleted, or the last farm administrator cannot be removed. Error code: -2147024809. |
|
Cannot remove users with unique role assignment permissions. Error code: -1. |
|
Access denied when updating farm administrators group. Error code: -1. |
|
The current user has insufficient permissions. Error code: -2147024891. |