question

frob avatar image
0 Votes"
frob asked EmilyDu-MSFT answered

Can the "Remove-SPOUser" command remove permissions of a user even if a SharePoint Online site gives View permissions to "Everyone Except external users"?

Hi there

My SharePoint Online site grants Read/View permissions to "Everyone Except external users", which is good.
I need to disallow only a user from that site (while all others should continue having permission).

Can the "Remove-SPOUser" command remove permissions of a user even if a SharePoint Online site gives View permissions to "Everyone Except external users"?

Thanks.

office-sharepoint-onlinewindows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered

@frob

Per my test, "Remove-SPOUser" command cannot remove view permission of a user when SharePoint Online gives view permission through "Everyone except external users".

"Everyone except external users" is a group built into the SharePoint codebase. It being part of the codebase rather than a modifiable object. You cannot modify membership as it doesn't actually have membership.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.