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

REST Connector - Entitlements Only Import

UwarajWaman
New Contributor III
New Contributor III

Hi,

I am working on a REST based connector and want to import "entitlements only" from this target. Here's my API response -

 

[
    {
        "appName": "TestApp",
        "appId": "6bd15438-97e4-4dac-9c65-18f0b592ab86",
        "riskLevel": "MEDIUM",
        "status": "active"
    }
]

 

My "ImportAccountEntJSON" looks like -

 

{
    "accountParams": {},
    "entitlementParams": {
        "connection": "acctAuth",
        "processingType": "SequentialAndIterative",
        "entTypes": {
            "Application": {
                "entTypeOrder": 0,
                "call": {
                    "call1": {
                        "callOrder": 0,
                        "stageNumber": 0,
                        "http": {
                            "url": "http://11.222.33.44/rest/certification/v1/apps?detailed=true",
                            "httpHeaders": {
                                "Authorization": "${access_token}",
                                "Namespace": "24:0",
                                "Content-Type": "application/json"
                            },
                            "httpContentType": "application/json",
                            "httpMethod": "GET"
                        },
                        "listField": "",
                        "keyField": "entitlementID",
                        "colsToPropsMap": {
                            "entitlementID": "appId~#~char",
                            "entitlement_value": "appName~#~char"
                        },
                        "disableDeletedEntitlements": true
                    }
                }
            }
        }
    },
    "acctEntParams": {}
}

 

The Data Import (Access) job returns "success" but no entitlements are imported.

Any help to resolve this issue is much appreciated.

7 REPLIES 7

ejeong
Valued Contributor
Valued Contributor

Whats full response? Did you check if you need "listField"?

 

UwarajWaman
New Contributor III
New Contributor III

This is the full response. There is nothing in response to specify as list field.

rushikeshvartak
All-Star
All-Star

Try "Accept": "application/json" instead of "Content-Type": "application/json"


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

"Content-Type": "application/json" is required as per the target API spec. Without that header, API returns error on postman requests as well.

I did try using "Accept": "application/json" but no success in importing the entitlement.

Please share debug logs


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

UwarajWaman
New Contributor III
New Contributor III

This issue is now resolved. I was using "httpMethod": "POST" in connection json. Changing that to "httpMethod": "GET" made the connector to import data successfully. 

Thanks for chiming in to help.

Sankar
New Contributor
New Contributor

Hi uwaraj,

Even I am facing same kind of issue. I have tried to modify the httpmethod in connection JSON. That is not working.

In my case, In saviynt logs, i could see the API response with entitlement name. But it not getting reconcile to saviynt. 

Can any one help me on this

 

Thanks,

Sankar