Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, November 1, 2011 1:25 PM
I'm trying to add a term store administrator using PowerShell. I'm logged on to one of the farm web servers with a farm administrator account (also happens to be a domain admin account too). I'm running the following PowerShell:
$ts = Get-SPTaxonomySession -Site https://test.splab.local
$termStore = $ts.TermStores["Tenant Taxonomy Proxy"]
$termStore.AddTermStoreAdministrator("splab\user1")
And I'm getting the following error:
Exception calling "AddTermStoreAdministrator" with "1" argument(s): "Attempted to perform an unauthorized operation"
I'm guessing this is some sort of permissions problem but no idea what.
Supplementary details: - SharePoint 2010 on top of Windows 2008 - Configured the web app to be multi-tenanted - Using Claims Based Authentication with a custom claims provider
All replies (2)
Thursday, November 3, 2011 8:22 AM âś…Answered
OK I got some help from sharepoint.stackexchange.com:
Is the account you're using have Term Store Administrator rights in the farm? You may want to take a look at this blog post and see if your account is set up in the areas it mentions:http://jyothiregode.wordpress.com/2011/02/19/create-termset-programmatically-using-powershell-in-sharepoint-2010/
This solved the problem for me.
Thursday, November 3, 2011 8:19 AM
Hi sam,
Can you add the administrator to the service by UI? Can you provider some information about the Custom Provider?