For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-PSUIdentity

Creates a new identity within PSU.

SYNOPSIS

Creates a new identity within PSU.

SYNTAX

New-PSUIdentity -Name <String> [-Role <Role>] [-Password <SecureString>] [-CredentialVault <String>]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

DESCRIPTION

Creates a new identity within PSU. An identity is either a user or an application that needs to interact with PSU. Identities are created automatically from git commits. You should create a new identity for users accessing PSU if you wish to audit the system or provide authentication and authorization.

EXAMPLES

Example 1

PS C:\> $Role = Get-UARole -Name 'Administrator'
PS C:\> New-UAIdentity -Name 'Adam'

Creates the identity 'Adam' and assigns the role of administrator.

PARAMETERS

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-Name

The name of the identity.

-Role

The role of the identity. Use Get-PSURole to receive a Role object.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-CredentialVault

A credential vault to store the local user's credentials.

-Password

A password for a local account.

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?