Public/new-AllegisIDNIdentityProfile.ps1
1 2 3 4 5 6 7 8 9 10 |
function new-AllegisIDNIdentityProfile ($orgname, $accesstoken, $name, $sourceid) { $header=get-AllegisIDNprivateHeader $accessToken $privateuribase="https://$orgname.api.identitynow.com" $url="$privateuribase/cc/api/profile/create" $body="name=$name&sourceId=$sourceid" $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 } |