Group.AddGroupManager Method
Adds a group manager to the Group object.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Sub AddGroupManager ( _
principalName As String _
)
'Usage
Dim instance As Group
Dim principalName As String
instance.AddGroupManager(principalName)
public void AddGroupManager(
string principalName
)
Parameters
principalName
Type: System.StringThe login name of the user to be added as a group manager
Exceptions
Exception | Condition |
---|---|
ArgumentException | The user name is too long |
ArgumentException | The user name can not be found. |
ArgumentNullException | principalName is null or empty |
UnauthorizedAccessException | The current user has insufficient permissions to perform this operation. |
Remarks
Group managers have these permissions in the group.
TaxonomyRights.EditTerm
TaxonomyRights.EditTermSet
TaxonomyRights.EditGroup
TaxonomyRights.AddTermSetEditPermissions
TaxonomyRights.GroupManager
Group managers can read and modify the group, and they can add or remove contributors from the group. Additionally they can perform all operations that a contributor can perform. The current user must have TaxonomyRights.ManageTermStore permission in the group to use this method. Call the CommitAll() to save this change to the database.