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?


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
  • 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

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.