Public/remove-AllegisIDNIdentityAttribute.ps1
1 2 3 4 5 6 7 8 9 10 11 |
function remove-AllegisIDNIdentityAttribute ($orgName, $accessToken, $name){ $header=get-AllegisIDNprivateHeader $accessToken $privateuribase="https://$orgname.identitynow.com" $url="$privateuribase/cc/api/identityAttribute/delete" $body=@() foreach ($item in $name){$body=$body + "attributeNames=$item"} $body=$body -join '&' $response=Invoke-WebRequest -Uri $url -Method Post -UseBasicParsing -Headers $header -Body $body -ContentType "application/x-www-form-urlencoded" $sourceIdentityProfile=$response.Content | ConvertFrom-Json return $sourceIdentityProfile } |