Public/new-AllegisIDNIdentityProfile.ps1

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
}