I'd like to warn users before sharing a file or a site to "Everyone" by showing a pop up. Is there a way to do this ?

Otherwise, is there a way to block sharing to everyone ?

Thank you for your help.


Any help please ? I just need to get a prompt when people try to share. Thank you.

1 Answer 1


Here is one way to hide everyone in your people picker. Use the script below, there will be no everyone option in sharing(and any people picker)

$claimMgr = Get-SPClaimProviderManager

$allUser = get-spclaimprovider –identity "AllUsers"

$allUser.IsEnabled = $false


enter image description here

And your can set it back by changing the $false to $true then run the script again.

  • Thank you Jerry_MSFT for your answer but I already have this script but is not a solution. In fact, we still need "Everyone" to be pickable.
    – Mapow
    Commented Dec 1, 2020 at 9:11

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.