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

Create Account JSON Syntax for REST connection

Suresh1
New Contributor
New Contributor

Hello Team,

We have a requirement to pass a schema attribute while creating a new account in the target application. But i'm facing issue in formulating the right syntax to use here.

Below is the Postman payload and account is getting created successfully with the below payload.

Suresh1_0-1709148441913.png

I have tried couple of combinations to pass this but it ended up with an error.

Here is my createaccountjson

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://<URL>",
"httpMethod": "POST", "httpParams":"{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"userName\":\"${accountName}\",\"emails\":[{\"type\":\"string\",\"type\":\"work\",\"value\":\"${accountName}\",\"primary\":true}],\"active\":true,\"userType\":\"Employee\",\"displayName\":\"${user.displayname}\",\"name\":[{\"type\":\"string\",\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/scim+json",
"successResponses": {
"statusCode": [
201,
200
]
}
}
]
}

 

Below is the error response in Saviynt logs

Suresh1_1-1709149824592.png

 

Could you please help me here and provide me the right syntax for passing Schema attribute value ?

Regards,

Suresh V.

 

 

3 REPLIES 3

Raghu
Regular Contributor III
Regular Contributor III

@Suresh1  below help full

https://forums.saviynt.com/t5/identity-governance/error-in-mapping-json-value-from-import-rest-conne...

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://<URL>",
"httpMethod": "POST",
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"userName\":\"${accountName}\",\"emails\":[{\"type\":\"string\",\"type\":\"work\",\"value\":\"${accountName}\",\"primary\":true}],\"active\":true,\"userType\":\"Employee\",\"displayName\":\"${user.displayname}\",\"name\":[{\"type\":\"string\",\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/scim+json",
"successResponses": {
"statusCode": [
201,
200
]
}
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak ,

Tried this , But no luck. Same error again.

Suresh1_0-1709583001787.png