Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.