and more in a single search tool across platforms. Read the announcement here. |
03/04/2024 03:05 AM
Team,
We are receiving the Rest response with back slash as per the logs Because of this back slash we are unable to import the account .The same response in Postman shows the right format. Please suggest your inputs.
{ \"date\":2024-03-04,\"rownumber\":8,\"accounts\":[ {
\"useraccount\":\"XXX\",\"email\":\"XXX\",\"cname\":\"XXX\",\"roles\":[ { \"rolecode\":\"common\"}, { \"rolecode\":\"DDPM\"}, { \"rolecode\":\"guest\"} ]}
We are using "httpContentType": "application/json" and header is blank
"httpHeaders": { },
03/04/2024 03:56 AM
Are you importing accounts or provisioning?
Can you share your import/provisioning JSON and screen shot from postman.
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
03/04/2024 07:00 AM
Amit
I am trying to import accounts.
Here is the Json which I am using
{
"accountParams": {
"acctEntMappings": {
"Roles": {
"idPath": "",
"keyField": "entitlementID",
"listPath": "rolecode"
}
},
"call": {
"call1": {
"callOrder": 0,
"colsToPropsMap": {
"accountID": "email~#~char",
"customproperty11":"#CONST#Active~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char",
"name": "email~#~char"
},
"http": {"httpParams": "{\"client_id\": \"fffsj\",\"client_secret\": \"9C4A\"}",
"httpContentType": "application/json",
"httpHeaders": {
"Accept": "text/json"
},
"httpMethod": "POST",
"url": "http://abc/def"
},
"keyField": "accountID",
"idPath": "email",
"listField": "accounts",
"stageNumber": 0
}
},
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountThresholdValue": 50,
"activeStatus": [
"Active"
],
"correlateInactiveAccounts": false,
"deleteLinks": true,
"inactivateAccountsNotInFile": false,
"statusColumn": "customproperty11"
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"colsToPropsMap": {
"entitlement_value": "rolecode~#~char",
"entitlementID": "rolecode~#~char"
},
"http": {
"httpParams": "{\"client_id\": \"fffsj\",\"client_secret\": \"9C4A\"}",
"httpContentType": "application/json",
"httpHeaders": {
},
"httpMethod": "POST",
"url": "http://abc/def"
},
"keyField": "entitlementID",
"listField": "data"
}
}
}
}
}
}
03/04/2024 07:58 AM
@Karthik can you share the sample response from Postman?
03/04/2024 09:25 AM
Response as per saviynt logs
{ \"date\":2024-03-04,\"rownumber\":8,\"accounts\":[ {\"useraccount\":\"aa\",\"email\":\"xxx@123.com\",\"cname\":\"test\",\"roles\":[ { \"rolecode\":\"admin\"} ]},cookies:[], statusCode:200]\n","stream":"stdout","time":"2024-03-04T08:30:43.069570981Z"}