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

REST Connector - Import Accounts Issue

IAM_99
Regular Contributor II
Regular Contributor II

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

IAM_99_0-1669011021489.png

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 ?

3 REPLIES 3

IAM_99
Regular Contributor II
Regular Contributor II

Hi ,

In the logs its throwing this -rest.RestProvisioningService - INFO: Account Name is null, record not saved

Keep listField :""

and accounts attribute as

content.userId etc


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

Sivagami
Valued Contributor
Valued Contributor

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