Requirement: Enable or Disable the “Everyone” group in SharePoint Online.
“Everyone” claims in SharePoint Online consist of all users already having access to the site – This includes all accounts from the authentication provider (typically Active Directory) as well as any external accounts that are invited to the tenant. This is equivalent to the “all authenticated users” who need to login (not anonymous users).
Check if the “Everyone” group is enabled or Disabled:
From SharePoint Online Management Shell, Type: Get-SPOTenant to get all properties of the SharePoint Online tenant, which tells us whether “Everyone” and “Everyone Except External Users” groups are hidden. The “Everyone” group can be hidden from Office 365 SharePoint Online tenant people picker with the below PowerShell script.
How to disable everyone Group in SharePoint Online?
To disable everyone, use the Set-SPOTenant cmdlet in the SharePoint Online Management Shell:
#SharePoint Online Admin Center URL $AdminURL = "https://Crescent-admin.sharepoint.com/" #Connect to SharePoint Online Connect-SPOService -url $AdminURL -credential (Get-Credential) #Disable Everyone group Set-SPOTenant -ShowEveryoneClaim $False
SharePoint Online – Enable Everyone group:
If the “Everyone” group is missing, you can enable it with the below PowerShell.
#Disable Everyone group Set-SPOTenant -ShowEveryoneClaim $True
SharePoint Online: Remove Everyone except external users
When you add a new user in Office 365, The user becomes a member of the “Everyone except external users” group automatically, which is granted with member permissions of the site by default. To grant all internal users (employees) access to a SharePoint site, You can use the “Everyone except external users” Group.
Typically, when you need to make a site available to everyone in your organization (E.g., Intranet Site), you use “Everyone except external users group” instead of “Everyone” Group. In case, If you want to disable “Everyone Except External Users”, you can set the “ShowEveryoneExceptExternalUsersClaim” value to “False.”
#SharePoint Online Admin Center URL $AdminURL = "https://Crescent-admin.sharepoint.com" #Connect to SharePoint Online Connect-SPOService -url $AdminURL -credential (Get-Credential) #Disable Everyone group Set-SPOTenant -ShowEveryoneExceptExternalUsersClaim $False
This hides “everyone except external users” in SharePoint Online. Similarly, If everyone except external users is not working in SharePoint Online, You can enable it with:
Set-SPOTenant -ShowEveryoneExceptExternalUsersClaim $True
Please note, these changes do not impact any existing permissions. And we can’t add/remove users to these two built-in groups!
PnP PowerShell to Enable “Everyone” or “Everyone Except External Users”
Use this PnP PowerShell script to enable Everyone and Everyone except external users in SharePoint Online people picker.
#Config Variables $AdminCenterURL = "https://crescent-admin.sharepoint.com" #Connect to PnP Online Connect-PnPOnline -Url $AdminCenterURL -Interactive #hide the "Everyone Except External Users" claim in People Picker Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $True #Show "Everyone" in people picker Set-PnPTenant -ShowEveryoneClaim $True