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 : httpAcctToEnt variables other than user=$id

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 7 2020 at 20:52 UTC

Connector : REST Connector

ImportAccountEntJSON


In the acctEntParams, if we use the processingType as httpAcctToEnt, then we can specify the URL with a param for getting entitlements for each account.

We have to provide $id as the value.


e.g.

"url": "https://mycompany.com/rest/scriptrunner/getRolesForUser?user=${id}"



What other params are available to pass to the URL instead of the user?

Can I pass values like customproperty1, customproperty2 etc?


If yes, then, can someone share examples of how to use them in the URL?


EXAMPLE:

"acctEntParams": {

"connection": "myConnection",

"entTypes": {

"projectRole2": {

"call": {

"call1": {

"callOrder": 0,

"stageNumber": 0,

"processingType": "httpAcctToEnt",

"http": {

"httpHeaders": {

"Authorization": "${access_token}",

"Accept": "application/json"

},

"url": "https://mycompany.com/rest/scriptrunner/getRolesForUser?user=${id}",

"httpContentType": "application/json",

"httpMethod": "GET"

},

"listField": "userRoles",

"entIdPath": "RoleID",

"entKeyField": "entitlementID",

"acctKeyField": "accountID"

}

}

}

}

}


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
4 REPLIES 4

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 12 2020 at 06:00 UTC

Hi Anand,


The REST connector does not support binding of custom properties in the URL of httpAcctToEnt processingType


Thank you

Vedanth B.K

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 12 2020 at 20:18 UTC

Can we bind any other variable other than the username ?

Anand

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 22 2020 at 20:54 UTC

Can we bind any other variable other than the username ?

Anand

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 2 2020 at 14:39 UTC

Hi Anand,


As of now binding other variables is unavailable in the acctEntmapping params.


Thank you

Vedanth B.K

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.