Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/30/2024 04:33 AM
Hi , i am running the recon and getting the error as
i am using the below connection JSON.
{
"authentications":{
"userAuth":{
"authType":"oauth2",
"url":"https://xxx",
"httpMethod":"POST",
"httpParams":{
"client_id": "xxx",
"client_secret": "xxx",
"grant_type": "client_credentials"
},
"httpHeaders":{
"contentType":"application/x-www-form-urlencoded"
},
"httpContentType":"application/x-www-form-urlencoded",
"expiryError":"ExpiredAuthenticationToken",
"retryFailureStatusCode":[
401
],
"authError":[
"Unauthorized"
],
"timeOutError":"Read timed out",
"errorPath":"error",
"maxRefreshTryCount":5,
"tokenResponsePath":"access_token",
"tokenType":"Bearer",
"accessToken":"<Token>"
}
}
}
IMPORT Account JSON:]
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty8",
"status": [
"ACTIVE"
],
"deleteLinks": true,
"accountThresholdValue": 1000,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxx/users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "items",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char",
"displayName": "username~#~char",
"customproperty1": "first_name~#~char"
}
},
"acctEntMappings": {
"Role": {
"importAsEntitlement": false,
"listPath": "roles",
"idPath": "primary_role.role",
"keyField": "entitlementID"
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
Has anyone faced the same error before?
Solved! Go to Solution.
05/30/2024 05:25 AM
Hi @Rajatlm10,
Try with "connection":"userAuth".
You need to use the name between your ConnectionJSON and your ImportAcctEntJSON.
Hope this helps !
05/30/2024 05:27 AM
Connection name in connection json should match with all subsequent jsons
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty8",
"status": [
"ACTIVE"
],
"deleteLinks": true,
"accountThresholdValue": 1000,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxx/users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "items",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char",
"displayName": "username~#~char",
"customproperty1": "first_name~#~char"
}
},
"acctEntMappings": {
"Role": {
"importAsEntitlement": false,
"listPath": "roles",
"idPath": "primary_role.role",
"keyField": "entitlementID"
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
05/30/2024 05:44 AM
Make sure the name of you connection json is same which you are using different jsons in your connection.
In your connection json name is userAuth and you are using acctAuth in your import json. It should be same on both the places like below:
Connection JSON:
{
"authentications":{
"acctAuth":{
"authType":"oauth2",
"url":"https://xxx",
"httpMethod":"POST",
"httpParams":{
"client_id": "xxx",
"client_secret": "xxx",
"grant_type": "client_credentials"
},
"httpHeaders":{
"contentType":"application/x-www-form-urlencoded"
},
"httpContentType":"application/x-www-form-urlencoded",
"expiryError":"ExpiredAuthenticationToken",
"retryFailureStatusCode":[
401
],
"authError":[
"Unauthorized"
],
"timeOutError":"Read timed out",
"errorPath":"error",
"maxRefreshTryCount":5,
"tokenResponsePath":"access_token",
"tokenType":"Bearer",
"accessToken":"<Token>"
}
}
}
IMPORT Account JSON:
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty8",
"status": [
"ACTIVE"
],
"deleteLinks": true,
"accountThresholdValue": 1000,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxx/users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "items",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char",
"displayName": "username~#~char",
"customproperty1": "first_name~#~char"
}
},
"acctEntMappings": {
"Role": {
"importAsEntitlement": false,
"listPath": "roles",
"idPath": "primary_role.role",
"keyField": "entitlementID"
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}