Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST - Accounts Import

rushikeshvartak
All-Star
All-Star

Hi 

Trying to fetch accounts from application, Below is error from Logs. Any inputs on possible reasons

Account JSON

rushikeshvartak_1-1653363547864.png

 

Error :

rushikeshvartak_0-1653363446788.png

 

Output from Postman

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.
10 REPLIES 10

sahajranajee
Saviynt Employee
Saviynt Employee

Hi Rushikesh, 

404 would imply that the API endpoint itself is not found. Is the webservice you are trying to access, accessible from your Saviynt environment?

You can try including  a "testConnectionParams" block in your Connection JSON to validate a simple webservice call while Save and Test Connection to ensure that the connectivity works.

Example of the same can be found in our Connector guide:
https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide


Regards,
Sahaj Ranajee
Sr. Product Specialist

rushikeshvartak
All-Star
All-Star

what will be keyfield, listfield & colsMapping in below case

rushikeshvartak_0-1653418595259.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

What Sahaj is suggesting is to validate if your endpoint is reachable from Saviynt or not, At this point you need not worry about the specifics of the connector itself.

 

Regards,

Avinash Chhetri

Regards,
Avinash Chhetri

testConnectionParams

Http url giving proper error on UI

Https url. Showing 404 page not found. Trying to understand if server is reachable or not. Maybe SSL issue


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak 

Your ListObject is wrong above. The Response you shared is in the image format so try something below or use JSON editor tool to understand the trace path. I believe the userid is sitting under "Viewlable" attribute. (This is just an example to give you a understanding). So try out path.

Listfield - objects.T_BASIC_USER.attributes.USER_ID.metamap

Columnstopropmap
"name" : "viewlabel"

Before going there 404 is the error you are getting so try this get user call in postman first to make sure there is no issue with reaching the target URL.

Also which application is this?

Regards,
Sagar Srikantaiah

Keycloack Technology - Energy Credit Application.

404 - Error because of SSL , Added SSL into keystore


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

here datavalue contains username

https://codebeautify.org/jsonviewer/y22398596 

rushikeshvartak_0-1654641684463.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sagars
Saviynt Employee
Saviynt Employee

@rushikeshvartak ,

Listfield = objects.T_BASIS_USER

colsToPropsMap = attributes.USER_ID.datavalue

Regards,
Sagar Srikantaiah

"listField": "objects.T_BASIS_USER",
"keyField": "accountID",
"colsToPropsMap": {
"name": "attributes.USER_ID.datavalue~#~char"

rushikeshvartak_0-1655390223158.png

2022-06-16/14:33:51.575 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - pullObjectsByRest - responseStatusCode ::200
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Entered getResponseHeaders method
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - responseError : null
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - isAuthError: false
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - pullObjectsByRest - responseMap.size : 1
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - pullObjectsByRest - objectList.size : 1
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Inside importAccountsFull:persistAccounts, pptTypeSep : ~#~
2022-06-16/14:33:51.576 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Exception in persistAccounts try2 :
java.lang.NullPointerException

 

case 2 :

"listField": "objects.T_BASIS_USER",
"keyField": "accountID",
"colsToPropsMap": {
"name": "attributes.USER_ID[0].datavalue[0]~#~char"

rushikeshvartak_0-1655415286850.png

 

 

try2 error & objectList.size gives all 139 records

2022-06-16/21:31:50.809 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - pullObjectsByRest - responseMap.size : 1
2022-06-16/21:31:50.809 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - pullObjectsByRest - objectList.size : 139
2022-06-16/21:31:50.809 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Inside importAccountsFull:persistAccounts, pptTypeSep : ~#~
2022-06-16/21:31:50.809 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Exception in persistAccounts try2 :
java.lang.NullPointerException
2022-06-16/21:31:50.809 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Exception in persistAccounts try2 :
java.lang.NullPointerException


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi Rushikesh,

Please add the AccountID Field in the colsToPropsMap mapping.

Thanks,

Sharukh.