Sunday, October 25, 2015

Office365: How to add user to SharePoint Online site using PowerShell

Use Add-SPOUser to add an existing Office 365 user to SharePoint online site.

Note: user performing the action must be SharePoint Online Global Administrator and the user which is being added exists in Office 365.

If you want to know how to add a new user in Office 365, please follow the link here.

Now coming back to the ADD-SPOUser, it has three parameters which all are mandatory.

Site
        Site URL where user needs to added.
LoginName
        Login Name of user
Group
       SharePoint Security Group name, where user will be added.

Syntax



Add-SPOUser -Site <SiteUrl> -LoginName <UserName> -Group <Group>
 
 
 
 Varify if user has been added using GET-SPOUser cmdlet.
 
 
 
 
 

No comments:

Post a Comment