다음을 통해 공유


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.String

    The 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.

  1. TaxonomyRights.EditTerm

  2. TaxonomyRights.EditTermSet

  3. TaxonomyRights.EditGroup

  4. TaxonomyRights.AddTermSetEditPermissions

  5. 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.

See Also

Reference

Group Class

Group Members

Microsoft.SharePoint.Taxonomy Namespace

DeleteGroupManager(String)

GroupManagers

TaxonomyRights