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.StringThe 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
TaxonomyRights.EditTerm
TaxonomyRights.EditTermSet
TaxonomyRights.EditGroup
TaxonomyRights.AddTermSetEditPermissions
TaxonomyRights.ManageTermStore
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
Microsoft.SharePoint.Taxonomy Namespace