How to set the visibility of a user profile property to "Everyone" using PowerShell in SharePoint Online.

Tried below no luck.

$UserProfile.UserProfileProperties.Email["Visibility"] ="Everyone"
$UserProfile.UserProfileProperties.Email["Show me"] = "Everyone"

1 Answer 1


As far as i know it is not supported to set User Profile policy settings (such as Default Privacy Setting ) via SharePoint CSOM API, only update user profile properties is supported via the following methods:

  • Microsoft.SharePoint.Client.UserProfiles.PeopleManager::SetSingleValueProfileProperty()
  • Microsoft.SharePoint.Client.UserProfiles.PeopleManager::SetMultiValuedProfileProperty()

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.