Forum Discussion

Jen Andersen's avatar
Jen Andersen
Copper Contributor
Aug 25, 2016

Blocking users from SPO

We've got a situation where we need to block a subset of users from accessing our SPO tenant while still keeping their access to the rest of the O365 suite active. We can't remove them from AD at the moment, so that's not a solution. Any other ideas? 

16 Replies

  • escupham's avatar
    escupham
    Steel Contributor

    Jen, we have a similar requirement.  How did you end up blocking the users from SPO?

  • Julian Knight's avatar
    Julian Knight
    Steel Contributor
    The license is an obvious route but be careful because I think they will lose access to their ODfB, not sure if that will kick off the deletion process. In our tenancy, all new users are added to at least one AD group that gives them access to all core SharePoint facilities so that is also a good way to apply control without having to mess with licenses. Of course, that really needs some setup before you can make full use of it. Create the AD Security Group, add all licensed users to it (a script), add the group to all appropriate SharePoint objects (Site Collections, sites, etc. depending on how you have security set up).
    • Paul Stork's avatar
      Paul Stork
      MVP

      As has already been mentioned, removing their license will not prevent them from accessing a SharePoint Online site to which they have been given permission.  Office 365 stopped checking licenses when accessing SharePoint sites about two years ago.  The only way to block users is either to Block their login (which will block their access to all Office 365 services) or remove their permissions in SharePoint.  Removing the license will NOT work.

      • Jen Andersen's avatar
        Jen Andersen
        Copper Contributor

        I was hoping that wouldn't be the solution since they've been given permission to a variety of material on the internet, both through the standard sharepoint permission group and individually. What a nightmare.

  • Paul is right just remove theire license and keep office license!
  • Dean_Gross's avatar
    Dean_Gross
    Silver Contributor
    Removing their license will be easiest if you want to block them from all SPO sites, this will also block their ODfB. If you just want to block a few SPO site collections would be to add them to an Azure AD group, create a custom Permission Level (with no perms) in the SPO site collection and assign the new group to that level.
    • Paul Stork's avatar
      Paul Stork
      MVP

       Unfortunately, removing their license will not keep them from accessing SahrePoint online if someone adds them to a site.  it used to work that way, but MS took out the license check about two years ago.  I am not aware of any way to lock users out of SharePoint and still allow them access to other Office 365 features other than finding and removing all permissions in SharePoint that would give them access.

      • Thanks Paul, that was going to be my next suggestion. A lot depends on how people have been given access to the Intranet. If it's a larger group such as Domain Users, then you could create a new group that doesn't include these users and swing the Intranet permissions over.

         

        Kind of a sledge hammer/nut scenario.

         

        I suppose you could block sign-in on the user, but I think that would stop the office client working.

    • Jen Andersen's avatar
      Jen Andersen
      Copper Contributor

      We've tried removing their SharePoint license but that didn't seem to remove access to the intranet. Not sure if there's something we were missing. 

Resources