Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/18/2024 01:12 AM
HI,
When we are trying to provision OKTA account from Saviynt we are getting following error even though values are not null.
CreateAccountJSON
{
"accountIdPath": "call1.message.id",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https:<OKTADOMAIN>/api/v1/users?activate=true",
"httpMethod": "POST",
"httpParams": "{\"profile\": {\"firstName\": \"${user.firstname}\", \"lastName\": \"${user.lastname}\", \"email\": \"${user.email}\", \"login\": \"${user.email}\", \"employeeID\": \"${user.username}\", \"status\": \"${user.statuskey}\" }}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
204,
201,
200
]
},
"unsuccessResponses": {
"statusCode": [
404,
401,
400
]
}
}
]
}
Error:-
{"errorCode":"E0000001","errorSummary":"Api validation failed: login","errorLink":"E0000001","errorId":"oaeb8IOyfxWRBOxCeTJZ-h7Rw","errorCauses":[{"errorSummary":"login: The field cannot be left blank"},{"errorSummary":"email: The field cannot be left blank"},{"errorSummary":"login: Username must be in the form of an email address"}]},"statusCode":400,"description":null,"status":"Failed"}}
Solved! Go to Solution.
04/18/2024 01:43 AM
Hello @vardhan_Reddy,
Can you try with below json instead of <login:user.email>, i have replaced it with username.
{
"accountIdPath": "call1.message.id",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://<OKTADOMAIN>/api/v1/users?activate=true",
"httpMethod": "POST",
"httpParams": "{\"profile\": {\"firstName\": \"${user.firstname}\", \"lastName\": \"${user.lastname}\", \"email\": \"${user.email}\", \"login\": \"${user.username}\" }}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
204,
201,
200
]
},
"unsuccessResponses": {
"statusCode": [
404,
401,
400
]
}
}
]
}
Thanks,
04/18/2024 02:05 AM
Yes, It worked
Thank you