I want to Add permissions for the new MMS service using powershell (all farm and application pool accounts) like below:

  1. As Service administrator (Full control)
  2. As Term store administrators (Full control)

How to add permissions using powershell?


I think you should try the Set-SPMetadataServiceApplication, What i am reading that you can set the Service administrator with the above command.

See this Example:

Set-SPMetadataServiceApplication -Identity "MetadataServiceApp1" -AdministratorAccount "contoso\username1" -FullAccessAccount "contoso\AppPoolAccount1,contoso\AppPoolAccount2" -RestrictedAccount "contoso\AppPoolAccount3,contoso\AppPoolAccount4,contoso\AppPoolAccount5" -ReadAccessAccount "contoso\AppPoolAccount6"

Here is for the Term Store Administrator

$AdminName = "Domain/UserName"
$taxonomySession = Get-SPTaxonomySession -Site "Path of your site"

    $termStore = $taxonomySession.TermStores["Your Term Store Name"]

if($termStore -ne $null)

# Removing all the existing TermStore Administrators
foreach($admin in $termStore.TermStoreAdministrators)



        #Adding new term Store Administrator

$group = $termStore.Groups["Your Group name"]

        if($group -ne $null)


            #Updating Owner of all the term set.                    
foreach($termSet in $group.TermSets) 

$termSet.Owner = $AdminName;





Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.