Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Unable to provision OKTA account

vardhan_Reddy
New Contributor III
New Contributor III

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"}}

 

2 REPLIES 2

sudeshjaiswal
Saviynt Employee
Saviynt Employee

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,

 

 

If you find the above response useful, Kindly Mark it as "Accept As Solution".

vardhan_Reddy
New Contributor III
New Contributor III

Yes, It worked

 

Thank you