#New-PnPUser Adds a user to the built-in Site User Info List and returns a user object ##Syntax
New-PnPUser -LoginName <String>
[-Web <WebPipeBind>]
##Returns
##Parameters
Parameter | Type | Required | Description |
---|---|---|---|
LoginName | String | True | The users login name ([email protected]) |
Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
##Examples |
###Example 1
PS:> New-PnPUser -LoginName user@company.com
Adds a new user with the login [email protected] to the current site