New-PnPUser
SYNOPSIS
Adds a user to the built-in Site User Info List and returns a user object
SYNTAX
New-PnPUser -LoginName <String> [-Connection <PnPConnection>]
DESCRIPTION
Allows to add a user to current site.
EXAMPLES
EXAMPLE 1
New-PnPUser -LoginName user@company.com
Adds a new user with the login user@company.com to the current site
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LoginName
The users login name (user@company.com)
Type: String
Parameter Sets: (All)
Aliases: LogonName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False