Get the account attribute value in HTTP Operation

Hi All,

Is it possible to get the account attribute value in the Webservice connector’s http operation?

In this sample body:

{
    "user": {
        "siteRole": "$plan.siteRole$"
    }
}

In the $plan.siteRole$, we would need to get the existing site role of the user. Is there a syntax available for getting it? $plan.siteRole$ does not return the exisiting value

Hi @jasmedina,

You will need to write a beforeProvisioning rule to add the existing role in the plan (if you are talking about entitlement) and then you can get it using “$plan.siteRole$”.

If you want to get some random attribute you can do it via parent child HTTP operation.

Parent: Get the user using the API call and map attributes in the response mapping.
Child: You will have the required attributes in the response and you can get it using “$response.siteRole$”

Hope this will help!

1 Like

Did you configure the Provisioning Policy for the operation, so siteRole is passed?

list-provisioning-policies | SailPoint Developer Community

Hi Jason,

Yes siteRole is configured in both the CREATE and UPDATE policy.

Create:

  {
            "name": "siteRole",
            "transform": {
                "type": "static",
                "attributes": {
                    "value": "Viewer"
                }
            }

Update:

     {
            "name": "siteRole",
            "transform": null,
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }