Compartilhar via


TermStore.AddTermStoreAdministrator Method

Adds a Term Store Administrator to the TermStore object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Sub AddTermStoreAdministrator ( _
    principalName As String _
)
'Usage
Dim instance As TermStore
Dim principalName As String

instance.AddTermStoreAdministrator(principalName)
public void AddTermStoreAdministrator(
    string principalName
)

Parameters

  • principalName
    Type: System.String

    The login name of the user to be added as a Term Store Administrator

Exceptions

Exception Condition
ArgumentException

The user name is too long

ArgumentException

The user name can not be found.

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

Term Store Administrators have the following permissions on the TermStore and within all Group objects of the TermStore

  1. TaxonomyRights.EditTerm

  2. TaxonomyRights.EditTermSet

  3. TaxonomyRights.EditGroup

  4. TaxonomyRights.AddTermSetEditPermissions

  5. TaxonomyRights.ManageTermStore

  6. TaxonomyRights.TermStoreAdministrator

Term Store Administrators can read and modify properties of the TermStore, they can add and remove groups, and they can add and remove group managers from groups. Additionally they can perform all operations that a contributor or group manager can perform within any Group in the TermStore. The current user must have TaxonomyRights.AddManageTermStorePermissions permission to use this method. Specifically, farm administrators have the TaxonomyRights.AddManageTermStorePermissions permission. Call the CommitAll() method to save this change to the database.

See Also

Reference

TermStore Class

TermStore Members

Microsoft.SharePoint.Taxonomy Namespace

DeleteTermStoreAdministrator(String)

TermStoreAdministrators

TaxonomyRights