03/13/2023 01:00 AM
I want to use the Get Authorization Token API call (https://documenter.getpostman.com/view/23971061/2s8YzQXPvV#0b187550-a2a1-44cc-b294-5b9f9d76b660).
I got a read account for the Saviynt portal.
This is my PowerShell code for this call.
$Auth = Get-Credentials
$url = https://{customer-specific}.saviyntcloud.com/ECM/api/login
$body = @{
"username" = $Auth.UserName
"password" = $Auth.GetNetworkCredential().Password
} | ConvertTo-Json
$result = Invoke-RestMethod -Method Post -Uri $url -ContentType "application/json"
The error message is:
Response status code does not indicate success: 400 ().
Does my user need some special permissions to be allowed to run REST API calls or is it possible to run REST calls when MFA is activated on a user?
03/13/2023 03:40 PM
Ensure with your admin you have the below privileges
03/13/2023 03:45 PM
You will need to provide api permissions to the SAV role assigned to this user.
To assign these permissions, you can navigate to Admin>SAV Roles.
Under the selected Role, navigate to Web Service Access and add the api permission.