Monday, October 26, 2015

Office 365: How to Remove user from SharePoint Online site

To remove a user from a security group or direct access to SharePoint online site, use Remove-SPOUser.

It has three parameters, two of them "Site" and "LoginName" are mandatory.

Site
      Site URL, where the user needs to be as site collection administrator.

LoginName
      Login Name of User.


Group
      Optional parameter specifying the group name where user exists.


Syntax


Remove-SPOUser -Site <SiteUrl> -LoginName <UserLogin> -Group <Security Group Name>
 
 

No comments:

Post a Comment