How to remove the everyone claim Picker from OneDrive for Business or SharePoint online


remove the everyone claim Picker form SharePoint online or onedrive for business

all users claim Picker

Show everyone claim

It is so recommended to use the Windows PowerShell ISE

Windows PowerShell ISE

First, connect to your online tenant

$credentials
=
Get-Credential

Connect-SPOService
-Url
https://yourdomain-admin.sharepoint.com
-credential
$credentials

Then run the following command to see properties of your tenant

Note: Any change in this part will also be applied to your SharePoint online configuration

The following command will show all command starting with show command

Using the ISE PowerShell

Get-spotenant | FL show*


ShowAllUsersClaim enables the administrator to hide the All Users claim groups in People Picker, but it doesn’t prevent resolving of All Users claim when fully typed
ShowEveryoneClaim Enables the administrator to hide the Everyone claim in the People Picker, but it doesn’t prevent resolving of Everyone claim when fully typed

As you can see, the show claims are both true

Just type –show and the list of properties will appear $false

The command must end with $false

Showallusersclaim is used for hiding everyone from appearing in the people picker

Set-SPOTenant -ShowEveryoneClaim $false

Run the get-spotenant | FL show* to make sure it is set to false

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s