Skip to main content

CreatePersonalAccessTokenRequest

Properties

NameTypeDescriptionNotes
NameStringThe name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created.[required]
Scope[]StringScopes of the personal access token. If no scope is specified, the token will be created with the default scope ""sp:scopes:all"". This means the personal access token will have all the rights of the owner who created it.[optional]
AccessTokenValiditySecondsInt32Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.[optional]

Examples

  • Prepare the resource
$CreatePersonalAccessTokenRequest = Initialize-PSSailpoint.V2024CreatePersonalAccessTokenRequest  -Name NodeJS Integration `
-Scope [demo:personal-access-token-scope:first, demo:personal-access-token-scope:second] `
-AccessTokenValiditySeconds 36900
  • Convert the resource to JSON
$CreatePersonalAccessTokenRequest | ConvertTo-JSON

[Back to top]