Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/5416584fe5fa3fa535d8c33295f44531 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/5416584fe5fa3fa535d8c33295f44531 to your computer and use it in GitHub Desktop.
Configure SailPointIdentityNow PowerShell Module Credentials v2 and v3 for use with the SailPoint IdentityNow PowerShell Module. Associated blogpost https://blog.darrenjrobinson.com/generate-sailpoint-identitynow-v2-v3-api-credentials/
Import-Module SailPointIdentityNow
$orgName = "YOUR_ORG"
Set-IdentityNowOrg -orgName $orgName
# IdentityNow Admin User
$adminUSR = "YOUR_ADMIN_USER"
$adminPWD = 'YOUR_ADMIN_USER_PASSWORD'
$adminCreds = [pscredential]::new($adminUSR, ($adminPWD | ConvertTo-SecureString -AsPlainText -Force))
# Customer IdentityNow Org v3 API Creds generated in IdentityNow Portal
$clientIDv3 = "YOUR_V3_CLIENTID"
$clientSecretv3 = "YOUR_V3_CLIENT_SECRET"
$v3Creds = [pscredential]::new($clientIDv3, ($clientSecretv3 | ConvertTo-SecureString -AsPlainText -Force))
# Customer IdentityNow API Client ID & Secret generated via API
$clientID = 'YOUR_V2_CLIENTID'
# Your API Client Secret
$clientSecret = 'YOUR_V2_CLIENT_SECRET'
$v2Creds = [pscredential]::new($clientID, ($clientSecret | ConvertTo-SecureString -AsPlainText -Force))
Set-IdentityNowCredential -AdminCredential $adminCreds -v2APIKey $v2Creds -v3APIKey $v3Creds
Save-IdentityNowConfiguration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment