Getting NullResponseFromTarget while groups import using Rest

gwagh
New Contributor III
New Contributor III

Hi Team,

I am facing issue with ImportAccountEntJSON. While importing access using Import job I am getting below error :

Failed url-https://xxxx.xxxx.xxxx/gateway/api/v1/user-groups/${uuid} for entType-Groups with Error Message-null

gwagh_0-1686734309879.png

 

I am using below ImportAccountEntJSON :

{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization":"${access_token}"
},
"httpMethod": "GET"
},
"statusConfig": {
"active": "true",
"inactive": "false"
},
"listField": "results",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "uuid~#~char",
"name": "email~#~char",
"status":"active~#~char",
"Customproperty1":"firstName~#~char",
"Customproperty2":"lastName~#~char",
"Customproperty3":"paymentAdministrator~#~char",
"Customproperty4":"systemAdministrator~#~char",
"Customproperty5":"emailRecipient~#~char",
"Customproperty6":"active~#~char"
}
}
}
},
   "entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Groups": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "results",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "uuid~#~char",
"entitlement_value": "code~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
        "connection": "userAuth",
        "entTypes": {
            "Groups": {
                "call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET"
},
"listField": "users",
"entKeyField": "entitlementID",
"acctIdPath": "uuid",
"acctKeyField": "accountID"
}
                }
            }
        }
    }
}
 
 
Use case - We want to fetch group membership and for that we have different api where we have to id.. 
 
Thanks in advance.
2 REPLIES 2

khalidakhter
Saviynt Employee
Saviynt Employee

Hi @gwagh 

You need to use the id in the URL configured in acctEntParams section to iterate each entitlementID of Groups.

Please the access import after updating the URL in acctEntParams as below:
https://xxxx.xxxxx.xxxx/gateway/api/v1/user-groups/${id}

gwagh
New Contributor III
New Contributor III

Thanks @khalidakhter ,

It's Working now..