I am trying to hide certain users from being searched for in SharePoint.

I have found the solution here: Show/ Hide and Change User Profile Properties

However, when I run the second command I get the following error:

enter image description here


Ensure you have proper rights to run these command. Refer to this article.

Let us know if it helped.

  • see my comment on the post below -
    – William
    Nov 19 '14 at 8:23

Following the code that you linked to will only hide certain profile properties (first name, last name, email, phone number, etc). It will not hide the actual profiles themselves. However, it looks as if you User Profile Service is either turned off or you do not have access to it. Make sure that you have access to the service. Also, make sure the User Profile Service and Synchronization Service are both running.

  • I granted full permission to the admin account. However, when I go into User Profile Service Application and select "Start Profile Synchronization", I get the message: "Cannot navigate to the requested page because User Profile Synchronization service is not running. Please start the User Profile Synchronization service before creating a connection" -
    – William
    Nov 19 '14 at 8:18
  • I edited my answer. Please see above. Nov 19 '14 at 15:20

It looks like you're still trying to find an answer to your earlier question SharePoint - Hide Irrelevant Users from Search check out my answer and make sure you really need to be editing the UPS.
If it really is the UPS Service Application you're interested in then the UPS Guide on Harbar.net really helped me out (although James Grizzles answer looks to have links to all the information you need).

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.