and more in a single search tool across platforms. Read the announcement here. |
02/28/2024 11:53 AM - edited 02/28/2024 11:54 AM
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.
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
Could you please help me here and provide me the right syntax for passing Schema attribute value ?
Regards,
Suresh V.
02/28/2024 06:57 PM
@Suresh1 below help full
02/28/2024 07:26 PM
{
"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
]
}
}
]
}
03/04/2024 12:10 PM