Last active
March 8, 2019 06:18
-
-
Save darrenjrobinson/5d7ac9c1758c1c561401c274104be99f to your computer and use it in GitHub Desktop.
Update SailPoint IdentityNow Access Profile. Associated Blog Post https://blog.darrenjrobinson.com/creating-sailpoint-identitynow-access-profiles-via-api-and-powershell/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IdentityNow Orgname | |
$orgname = "yourOrgName" | |
# Update Profile | |
$UpdateProfilesListBaseURI = "https://$($orgName).api.identitynow.com/v2/access-profiles" | |
# Access Profile ID | |
$profileid = $profile.id # where $profile is an Access Profile retrieved from Get Access Profiles | |
$updateAccessProfile = @{} | |
$updateAccessProfile.Add("requestCommentsRequired", $false) | |
$updateAccessProfile.Add("deniedCommentsRequired", $false) | |
$updateBody = $updateAccessProfile | convertto-json | |
$updateProfile = Invoke-RestMethod -method Patch -uri "$($UpdateProfilesListBaseURI)/$($profile.id)" -Headers @{Authorization = "$($v3Token.token_type) $($v3Token.access_token)"; "Content-Type" = "application/json"} -Body $updateBody |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment