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

AddAccesJSON - Call multiple endpoints for an entitlement

Paul_Meyer
Regular Contributor
Regular Contributor

Looking at Rest Connector's Developers Handbook, in example 3 of the AddAccessJSON section, the example shows two entitlement types:

 

{
  "call": [
    {
      "name": "Group",
...
    },
    {
      "name": "Role",
...
    }
  ]
}

 

If I need to make multiple calls when adding a "Group" entitlement what must the syntax be for added a second call for the "Groups" entitlement?

 

{
  "call": [
    {
      "name": "Group",
...
    },
{
      "name": "Group",
...
    },
    {
      "name": "Role",
...
    }
  ]
}

 

 

or perhaps:

 

{
  "call": [
    {
      "name": "Group1",
...
    },
{
      "name": "Group2",
...
    },
    {
      "name": "Role",
...
    }
  ]
}

 

The documented Note mentions multiple calls, but it does not explain what the correct syntax is to use for multiple calls for an entitlement type.

 

1 REPLY 1

Paul_Meyer
Regular Contributor
Regular Contributor

The correct syntax for multiple calls in AddAccessJSON is:

{
  "call": [
    {
      "name": "Group",
...
    },
{
      "name": "Group",
...
    },
    {
      "name": "Role",
...
    }
  ]
}

 The Developers Handbook has examples in the RemoveAccessJSON section.