Public/remove-AllegisIDNIdentityProfile.ps1
function remove-AllegisIDNIdentityProfile ($orgname, $accesstoken, $profileIds) { $header=get-AllegisIDNprivateHeader $accessToken $privateuribase="https://$orgname.api.identitynow.com" $url="$privateuribase/cc/api/profile/bulkDelete" $body="profileIds=$profileIds" $response=Invoke-WebRequest -Uri $url -Method Post -UseBasicParsing -Headers $header -Body $body -ContentType 'application/x-www-form-urlencoded' $sourceAccountProfile=$response.Content | ConvertFrom-Json return $sourceAccountProfile } |