Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Avoid updating the same entitlement type from Call 1 using the REST connector

pinky_chauhan
New Contributor II
New Contributor II

We are using a multi-call approach and do not want to update the same entitlement type from Call 1

 

"SharePoint List": {
        "entTypeOrder": 5,
        "call": {
          "call1": {
  "connection": "userAuth",
            "callOrder": 0,
            "stageNumber": 0,
            "http": {
              "httpHeaders": {
                "Authorization": "${access_token}"
              },
              "httpContentType": "application/json",
              "httpMethod": "GET"
            },
            "listField": "value",
            "keyField": "entitlementID",
            "colsToPropsMap": {
              "entitlementID": "id~#~char",
              "entitlement_value": "#CONST#${String site = response.'webUrl'; site = site.substring(site.indexOf('.com') + 4); return site}~#~char"
 
            }
          },
  "call2": {
  "connection": "userAuth",
            "callOrder": 1,
            "stageNumber": 3,
            "http": {
              "url": "https://graph.microsoft.com/v1.0/sites/${entitlementID}/lists",
              "httpHeaders": {
                "Authorization": "${access_token}"
              },
              "httpContentType": "application/json",
              "httpMethod": "GET"
            },
"inputParams": {
              "entitlementname": "SharePoint List"
            },
            "listField": "value",
            "keyField": "entitlementID",
            "colsToPropsMap": {
              "entitlementID": "id~#~char",
              "entitlement_value": "#CONST#${String site = response.'webUrl'; site = site.substring(site.indexOf('.com') + 4); return site}~#~char",
              "displayName": "displayName~#~char",
  "description": "description~#~char",
  "customproperty1": "name~#~char"
            }
          }
        }
      }
3 REPLIES 3

NM
Honored Contributor III
Honored Contributor III

@pinky_chauhan in the input param of entitlement name give a different Entitlement name.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star
  • What will be logic for not updating call 1 ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

pinky_chauhan
New Contributor II
New Contributor II

hi @NM Thanks, yes it worked, we don't need to give multiple calls we can directly use the other entiltlementtype using input params.

"SharePoint Site": {
"entTypeOrder": 3,
"call": {
"call1": {
"connection": "userAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://graph.microsoft.com/v1.0/sites?search=%22%2fsites%2f%22",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "value",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "#CONST#${String site = response.'webUrl'; site = site.substring(site.indexOf('.com') + 4); return site}~#~char",
"customproperty1": "name~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('@odata.nextLink')==null)? null : response?.completeResponseMap?.get('@odata.nextLink')}"
}
}
}
}
},
"SharePoint List": {
"entTypeOrder": 5,
"call": {
"call1": {
"connection": "userAuth",
"callOrder": 1,
"stageNumber": 3,
"http": {
"url": "https://graph.microsoft.com/v1.0/sites/${entitlementID}/lists",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"inputParams": {
"entitlementname": "SharePoint Site"
},
"listField": "value",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "#CONST#${String site = response.'webUrl'; site = site.substring(site.indexOf('.com') + 4); return site}~#~char",
"displayName": "displayName~#~char",
"description": "description~#~char",
"customproperty1": "name~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('@odata.nextLink')==null)? null : response?.completeResponseMap?.get('@odata.nextLink')}"
}
}
}
}
}

@rushikeshvartakWe are already updating call1 in another entitlement type (SharePoint Site) and want to categorize SharePoint site collections, lists, sites, permissions, and groups into separate entitlement types. It’s now clear that we don’t need a separate call1 for each.

Thankyou.