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

approvedBy column not proper

SA_123
New Contributor II
New Contributor II

Hi Team,

We are having an issue with approvedBy column. 

Issue : we are using rest based application. have a requirement where approvedBy column should print the all approvers who approved the request. for add access we are able to get only few members in column.

for ex : requested submitted, and this request has been approved by three people (in manager level one person, in owner level two persons) now this column should print all 3 members.

But it is only printing one or two users. we observed for some its printing one user. for some requests its printing 2 users. 

Please help on this issue that how to print all users username in that column.

here is the addAccessJSON : 

{
  "call": [
    {
      "name": "clearance-classification",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"GRANT\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [\"${entitlementValue.entitlement_value}\"],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [],\"expiry\": 1704070800000,\"grantTime\": 1664452272000,\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
    {
      "name": "clearance-geopolitical",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"GRANT\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [\"${entitlementValue.entitlement_value}\"],\"specialClearance\": [],\"expiry\": 1704070800000,\"grantTime\": 1664452272000,\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
    {
      "name": "clearance-subjectorownerterms",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.bhicorp.com\"],\"action\":\"GRANT\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [\"${entitlementValue.entitlement_value}\"],\"countryClearance\": [],\"specialClearance\": [],\"expiry\": 1704070800000,\"grantTime\": 1664452272000,\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
    {
      "name": "clearance-company",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"GRANT\",\"configuration\": {\"companyClearance\": [\"${entitlementValue.entitlement_value}\"],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [],\"expiry\": 1704070800000,\"grantTime\": 1664452272000,\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
    {
      "name": "clearance-codeword",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"GRANT\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [\"${entitlementValue.entitlement_value}\"],\"expiry\": 1704070800000,\"grantTime\": 1664452272000,\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    }
  ]
}
 
And for the remove access we need to print approvers CP19.
Please give the correct attribute to place for approvedBy column.
 
here is the removeAccessJSON :
{
  "call": [
    {
      "name": "clearance-classification",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"REVOKE\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [\"${entitlementValue.entitlement_value}\"],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [],\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
 {
      "name": "clearance-geopolitical",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"REVOKE\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [\"${entitlementValue.entitlement_value}\"],\"specialClearance\": [],\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
 {
      "name": "clearance-subjectorownerterms",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"REVOKE\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [\"${entitlementValue.entitlement_value}\"],\"countryClearance\": [],\"specialClearance\": [],\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
 {
      "name": "clearance-codeword",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"REVOKE\",\"configuration\": {\"companyClearance\": [],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [\"${entitlementValue.entitlement_value}\"],\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    },
 {
      "name": "clearance-company",
      "connection": "userAuth",
      "httpMethod": "PATCH",
      "httpParams": "{\"users\": [\"${user.customproperty19}@ent.domain.com\"],\"action\":\"REVOKE\",\"configuration\": {\"companyClearance\": [\"${entitlementValue.entitlement_value}\"],\"classificationClearance\": [],\"customerClearance\": [],\"countryClearance\": [],\"specialClearance\": [],\"approvedBy\": \"${approvers}\"}}",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json",
        "Content-Type": "application/json"
      },
      "httpContentType": "application/json"
    }
  ]
}
 
In remove access we also used below condition, however not worked.
${approvers.customproperty19}
 
We have stuck here. So kindly help on these two points ASAP.
 
Thanks,
Srividya
1 REPLY 1

rushikeshvartak
All-Star
All-Star

${approvers} works for role owner / user group ? It seems bug did you raise FD ticket


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