Forum Discussion
Can we deny a user from accessing all sharepoint online sites, while keeping his account active
Prasannarajuthis will work on paper but since we have lot of sites and sub-sites and each of them have the "Everyone Except external users" ,, so i was looking for a simpler approach to prevent a user from accessing the sites even if the user has permission. So there is no such an approach either using office 365 or share point online UI or powers-hell? or can we remove the user SharePoint online license (i do not have much knowledge on licensing but i am thinking loudly )
john john Removing their license will be easiest if you want to block them from all SPO sites,
Please note this will also block their ODfB. I would recommend to test this scenario with test user first and then apply to actual user.
Other option if you dont want to play with License,
Create a powershell script to check the permission level from each site collection from SPO and remove the permissions
https://support.microsoft.com/en-us/kb/3026385