Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I was recently directed to an article that explains how to add a user to the permissions list for the User Profile Service using Powershell, which worked a treat. [My original question]

I'm now looking for a way to add a user to the Administrators list for the User Profile Service, again using Powershell.

Any ideas?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

From Assign administration of a User Profile service application (SharePoint Server 2010):

$serviceapp = Get-SPServiceApplication <guid>
$security = Get-SPServiceApplicationSecurity $serviceapp -Admin
$principalUser1 = New-SPClaimsPrincipal -Identity "<domain\user>" -IdentityType WindowsSamAccountName
Grant-SPObjectSecurity $security -Principal $principalUser1 -Rights "Full Control"
Set-SPServiceApplicationSecurity $serviceapp -ObjectSecurity $security -Admin
share|improve this answer
    
Thanks again, rj (you helped me once before, hence the 'again'). Getting that link/code was the exact purpose of the question :) –  QMKevin Dec 6 '12 at 20:55
    
No problem, happy to help. –  RJ Cuthbertson Dec 6 '12 at 20:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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