Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Application data import for system have multiple endpoints

Lynn
New Contributor II
New Contributor II

Hi,

I created a rest based security system which associated with 2 endpoints. when I ran the application data import job. the accounts are only imported for one of the endpoints. below is the  connectionjson and ImportAccountEntJson:


{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"Accept": "application/json"
},
"authError": [
"InvalidAuthenticationToken"
],
"url": "https://******/oauth/token",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpParams": "{\"client_id\":\"******\",\"client_secret\":\"*****\",\"audience\":\"https://*****/api/v2/\",\"grant_type\":\"client_credentials\"}",
"errorPath": "error.code",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer ABCD",
"retryFailureStatusCode": [401,403,500]
}
}
}

 

 

{
"accountParams": {
"processingType":"SequentialAndIterative",
"connection": "acctAuth",
"createUsers": false,
"call": {
"call1": {
"http": {
"url": "http://******/api/users",
"basicUrl": "<domain name>",
"hostUrl": "/api/users",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
}
},
"listField": "users",
"keyField": "name",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userName~#~char",
"displayName": "displayName~#~char",
"customproperty1": "id~#~char",
"customproperty2": "department~#~char"
}}}
},
"acctEntParams": {
"processingType": "entToAcctMapping"
}
}

 

Is this the expected behaviour?

 

Many thanks,

Lynn

7 REPLIES 7

SB
Saviynt Employee
Saviynt Employee

You will need to use ENDPOINTS_FILTER in order to define the Entitlement type to be imported for each endpoint. You can refer to the below REST connector guide for the example (under Filtering Endpoints)

https://docs.saviyntcloud.com/bundle/REST-v23x/page/Content/Configuring-the-Integration-for-Importin...


Regards,
Sahil

Lynn
New Contributor II
New Contributor II

Hi Sahil,

I have issue with the accounts now, not the entitlements.

for Rest Endpoint1, I can find the accounts.

Lynn_0-1681834758064.png

 

but for Rest endpoint2, I could not find any account.

Lynn_1-1681834947774.png

 

 

 

Rest Endpoint1 and Rest Endpoint2 both are linked to Rest System1.

Lynn_2-1681835050490.png

 

Regards,

Lynn

 

SB
Saviynt Employee
Saviynt Employee

when you run the job, do you see data in logs for the 2nd call? You may want to Update ConfigJSON param in the REST connection with value {"showLogs":true} before running the job.


Regards,
Sahil

Lynn
New Contributor II
New Contributor II

Hi Sahil,

I can see the logs for rest endpoint1, but nothing for rest endpoint2.

Lynn_0-1681837968705.png

 

 

Regards,

Lynn

rushikeshvartak
All-Star
All-Star

You can't use same connection for 2 different application, Only Endpoints_filter can use same connection.

even if you use same connector in connection we never specify endpoint name hence it won't work. you need to create 1:1:1 pattern application 1 connection --> Security System --> Endpoint


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

Hi Rushikesh,

Thank you so much for the information. I have another question, when we run the Application data import job. the security system already contains the connection information. Is there any reason we still need to specify the external connection?

Lynn_0-1681917429505.png

 

Regards,

Lynn

SB
Saviynt Employee
Saviynt Employee

This provides flexibility to define another Connection in certain use cases where you want to update any Account/Entitlement attribute value from a different connection but for the same security system. Ideally External Connection value is auto populated when you select system in the job.


Regards,
Sahil