New-NectarUserAccount
    • 18 Oct 2022
    • 1 Minute to read
    • Contributors
    • Dark
      Light
    • PDF

    New-NectarUserAccount

    • Dark
      Light
    • PDF

    Article Summary

    Create a new Nectar DXP user account.

    Syntax

    New-NectarUserAccount
      -FirstName  <String>
      -LastName  <String>
      -EmailAddress  <String>
      -Password  <String>
      -AdminStatus  <String>
      -IsAdmin
      -Role  <String>
      -TenantName  <String>
    

    Examples

    Example 1

    New-NectarUserAccount -FirstName Turd -LastName Ferguson -Email tferguson@contoso.com -Password VeryStrongPassword -IsAdmin
    

    Creates a new user called Turd Ferguson

    Example 2

    Import-Csv .\Users.csv | New-NectaUserAccount
    

    Creates user accounts using a CSV file as input. CSV file must have the following headers: FirstName,LastName,Password,Email,AdminStatus (Use True/False for AdminStatus)

    Parameters

    -FirstName <String>
    The user's first name

    ParameterValue
    Requiredfalse
    Position1
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -LastName <String>
    The user's last name

    ParameterValue
    Requiredfalse
    Position2
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -EmailAddress <String>
    The user's email address

    ParameterValue
    Requiredtrue
    Position3
    Requiredtrue
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -Password <String>
    The password to assign to the new account

    ParameterValue
    Requiredfalse
    Position4
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -AdminStatus <String>
    True if Admin, False if not. Used when importing many admin accounts via CSV

    ParameterValue
    Requiredfalse
    Position5
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -IsAdmin <SwitchParameter>
    Include if user is to be an admin. If not present, then user will be read-only

    ParameterValue
    Requiredfalse
    Positionnamed
    Requiredfalse
    Default ValueFalse
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -Role <String>

    ParameterValue
    Requiredfalse
    Position6
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -TenantName <String>
    The name of the Nectar DXP tenant. Used in multi-tenant configurations.

    ParameterValue
    Requiredfalse
    Position7
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses