remove the everyone claim Picker form SharePoint online or onedrive for business
Show everyone claim
It is so recommended to use the 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
Leave a Reply