New-LiquitUser

This command creates a new user in the local identity source.

Syntax

New-LiquitUser 
    [-Source] <IdentitySource> 
    [-Name] <string> 
    [-SecurePassword] <securestring>
    [-DisplayName <string>] 
    [-Mail <string>]
    [-LiquitContext <LiquitContext>]
    [-WhatIf]
    [-Confirm]  
    [<CommonParameters>]

New-LiquitUser 
    [-Source] <IdentitySource> 
    [-Name] <string> 
    [-Password] <string> 
    [-DisplayName <string>] 
    [-Mail <string>] 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]
    [<CommonParameters>]

Example

The following script creates a new user named "PowerShell User"; it has the display name of "PowerShell Management User" and uses the password provided at the prompt:

 $source = Get-LiquitIdentitySource -ID 00000000-0000-0000-0000-000000000000
 $securePass = Read-Host "Please provide your desired password" -AsSecureString
 New-LiquitUser -Source $source -Name "PowerShell User" -Displayname "PowerShell Management User" -SecurePassword $securePass

Parameters

Name Value Description Required Default value
Source <IdentitySource> The identity source of the user (only LOCAL is allowed). Yes
Username <string> The user name of the user to be created. Yes
Password <string> The password that goes with the new user. Yes*
SecurePassword <SecureString> The secure password that goes with the new user. Yes*
Displayname <string> A friendly name for the user. No
LiquitContext <LiquitContext> Determines the selected zone. No Default
* The command expects one of the required fields to be set.