Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# IdentityNow Orgname
$orgname = "yourOrgName"
# Update Profile
$UpdateProfilesListBaseURI = "https://$($orgName)"
# Access Profile ID
$profileid = $ # 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)/$($" -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.