Public/reset-AllegisIDNSource.ps1
1 2 3 4 5 6 7 8 |
function reset-AllegisIDNSource ($orgname, $accesstoken, $sourceid){ $header=get-AllegisIDNprivateHeader $accessToken if (!$header){Write-Warning 'unable to create an auth header with provided parameters';return $null} $url="https://$orgname.identitynow.com/api/source/reset/$sourceid" $response=Invoke-WebRequest -UseBasicParsing -Uri $url -Headers $header -Method post $source=$response.Content | ConvertFrom-Json return $source } |