11-21-2022 10:42 PM
Hi Team,
We are trying to import Accounts from REST endpoint, Its throwing 401 , but provisioning works
please find Import JSON :
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty16",
"activeStatus": [
"ACTIVE",
"PROVISIONED"
],
"deleteLinks": true,
"accountThresholdValue": 100000,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxxxxxxxxxxxxxxxxxx/v1/users/entitlements?size=500&page=1",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpMethod": "GET",
"httpContentType": "application/json"
},
"listField": "content",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "email~#~char",
"name": "userName~#~char",
"customproperty16": "userStatus~#~char",
"customproperty1": "userName~#~char",
"customproperty2": "firstName~#~char",
"customproperty3": "lastName~#~char",
"customproperty5": "email~#~char",
"customproperty16": "status~#~char",
"customproperty15": "country~#~char",
"customproperty21": "userId~#~char"
}
}
}
}
Its works in POSTMAN
CreateAccountJSON ( works)
~~~~~~~~~~~~~~~~~~~~
{
"accountIdPath": "accountName",
"call": [{
"name": "call1",
"connection": "userAuth",
"httpMethod": "POST",
"url": "https://xxxxxxxxxxxxx/v1/users/entitlements",
"httpParams": "{\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"email\":\"${user.email}\",\"username\":\"${user.email}\",\"country\":\"US\",\"entitlementId\":\"support_abc\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept":"application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204
]
}
}]
}
any idea , what am doing wrong here ?
Solved! Go to Solution.
11-27-2022 08:47 PM
Hi ,
In the logs its throwing this -rest.RestProvisioningService - INFO: Account Name is null, record not saved
11-27-2022 09:53 PM
11-27-2022 11:13 PM
This error means, in your API response, the attribute that you mapped to account name is blank for a record. Saviynt can't import that record into accounts table.
"name": "userName~#~char",
Per your description, you have mentioned about 401 error during import. Could you share the log snippet to check?
Just add below in the configJson of your connector for detailed logs.
{"showLogs": true}
-Siva