Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Account Provisioning Failed in PingOne

amitasingh
New Contributor II
New Contributor II

Hi Team,

I am trying to create an account in PingOne using below Connection and CreateAccount Parameters.

Connection Parameter================

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://auth.pingone.com/6b88c421-b494-490c-9df7-4a72b178c2a2/as/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_id": "59678779-5aa9-488f-8315-06e0efd182fe",
"client_secret": "tVv4oAQiE2pO3hKaMgx8F47w2M4r82-E0iRCK0aGDlQfed~-G9hjZ-3PrwtP_JyI"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken"
],
"retryFailureStatusCode": [
401
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}

 

CreateAccountJSON=================================================

{
"accountIdPath": "call1.message.id",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://api.pingone.com/v1/environments/6b88c421-b494-490c-9df7-4a72b178c2a2/users",
"httpMethod": "POST",
"httpParams": "{ \"email\": \"${user.email}\", \"name\": { \"given\": \"${user.firstname}\", \"family\": \"${user.lastname}\" }, \"population\": { \"id\": \"038f879e-a914-429f-bfe0-bdbc6b225dfb\" }, \"username\": \"${user.email}\", \"department\": \"${user.departmentname}\", \"locales\": [\"${user.location}\"] }",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}

But the account is not created and provisioning comment shows the below error:

{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}

Please help me to resolve this issue asap.

Thanks

Amita Singh

 

3 REPLIES 3

rushikeshvartak
All-Star
All-Star
  • Does Import worked ?
  • Do you see any errors in logs?
  • Does api works from postman 

https://apidocs.pingidentity.com/pingid-sdk/guide/server-api/pid_c_SDKapiUsers


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi,

-I didn't test for import.

- Very difficult to understand from the logs.

- Yes API is working through Postman.

Can you check import to make sure token is working as expected. Please share logs when u run wsretry and postman response


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.