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

ConnectionName userAuth not found

kolipakularavi
New Contributor
New Contributor

kolipakularavi_0-1698550438142.png

Hi Team,

As part of connectivity to REST API connector I am getting the below error. Please help

ConnectionName userAuth not found

Connection String

 

{
"authentications": {
"userAuth": {
"authType": "Basic",
"httpMethod": "POST",
"url": "removed",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "text/html",
"properties": {
"userName":"****",
"password":"********"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"errorPath": "error",
"retryFailureStatusCode": [
401
],
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic ********"
}
}
}

Import Json

{
"accountParams": {
"connection": "userAuth",
"createUsers": false,
"adminName": "admin",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"deleteLinks": false,
"accountThresholdValue": 30,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": false
},
"successResponses": {
"statusCode": [200]
},
"unsuccessResponses": {
"statusCode": [502]
},
"doNotChangeIfFailed": true,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "removed",
"httpHeaders": {
"Authorization": "Basic xxxxxxxxxxxxxxxxxxxxxx"

},
"httpParams": "{}",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"NAME": "userName~#~char"

}
}
}
}


}

[This message has been edited by moderator to mask url]

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Your connection json name matches , try updating connection again & please validate correct connection attached to job


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

poonammhetre
New Contributor II
New Contributor II

@kolipakularavi @rushikeshvartak  We are facing similar issue. I found below message in logs where it is saviynt connection is null. Could you please let me know if you were able to fix the issue?

 

2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Start Import Users
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Enter initializeConnectionForUserImport
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Exit initializeConnectionForUserImport
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-calling getUsersData method to hit Import User API
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Inside getUsersData
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-connection: null
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-ERROR-Error in getUsersData: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String#<init>.
 
2023-11-30T22:34:03+05:30-ecm-worker----Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
 
2023-11-30T22:34:03+05:30-ecm-worker----[class [B]
 
2023-11-30T22:34:03+05:30-ecm-worker----[class [C]
 
2023-11-30T22:34:03+05:30-ecm-worker----[class java.lang.String]
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Error in getUsersData: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String#<init>.
 
2023-11-30T22:34:03+05:30-ecm-worker----Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
 
2023-11-30T22:34:03+05:30-ecm-worker----[class [B]
 
2023-11-30T22:34:03+05:30-ecm-worker----[class [C]
 
2023-11-30T22:34:03+05:30-ecm-worker----[class java.lang.String]
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Exit getUsersData
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-processing usersData size:: 0
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Start Process Users
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-ERROR-Error in processUsers :
 
2023-11-30T22:34:03+05:30-ecm-worker----java.lang.NullPointerException: Cannot invoke method containsKey() on null object at com.saviynt.provisoning.rest.RestProvisioningService.processUsers(RestProvisioningService.groovy:2978) at com.saviynt.provisoning.rest.RestProvisioningService.importUsers(RestProvisioningService.groovy:2946) at com.saviynt.ecm.integration.ExternalConnectionCallService.importUserUsingExternalConnection(ExternalConnectionCallService.groovy:785) at UserImportJob.execute(UserImportJob.groovy:108) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
 
2023-11-30T22:34:03+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Error in processUsers :
 
2023-11-30T22:34:03+05:30-ecm-worker----java.lang.NullPointerException: Cannot invoke method containsKey() on null object at com.saviynt.provisoning.rest.RestProvisioningService.processUsers(RestProvisioningService.groovy:2978) at com.saviynt.provisoning.rest.RestProvisioningService.importUsers(RestProvisioningService.groovy:2946) at com.saviynt.ecm.integration.ExternalConnectionCallService.importUserUsingExternalConnection(ExternalConnectionCallService.groovy:785) at UserImportJob.execute(UserImportJob.groovy:108) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

We copy and pasted connection Json and it worked.  This is the issue with connection String.

Please accept solution and close the thread


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

Connection name in connection json and CRUD / Import jSON should match


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