0

I have some users that would like to delete from UPS in central admin. I have farm admin access and also added the accts to Admin - user profile service but when i try to delete i get access denied. Does anyone have an idea what I'm doing wrong?

Thanks in Advance

4
  • 1
    Goto CA -> Service Application -> select UPS application (but don't click the link) -> Permission (at top ribbon). See whether you have permission?
    – Mark L
    Feb 4, 2015 at 1:07
  • I think i did this already but it didnt work .Will look at it again
    – naijacoder
    Feb 4, 2015 at 6:30
  • Thanks Mark. I did that but still getting access denied
    – naijacoder
    Feb 4, 2015 at 23:15
  • Also check this: Goto CA -> Service Application -> select UPS application (but don't click the link) -> Administrators. See whether your farm admin have full control.
    – Mark L
    Feb 5, 2015 at 1:07

1 Answer 1

1

Using Powershell:

$spSite=Get-SPSite "http://servername"
$ctx=[Microsoft.SharePoint.SPServiceContext]::GetContext($spSite)
$userName = "spUserToDelete";
$userProfileMgr = [Microsoft.Office.Server.UserProfiles.UserProfileManager, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c]
$upm=New-Object $userProfileMgr($ctx)
$upm.RemoveUserProfile($userName)
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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