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

syntax to pass customproperty in the Create/Update account JSON for AzureAD

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on June 26 2020 at 14:11 UTC

Hi All,


There is an attribute in AzureAD "usageLocation" which I have mapped to a dynamic attribute in AzureAD endpoint with a drop-down having values US,GB,IN


However run into this error during provisioning


"error": {

"code": "Request_BadRequest",

"message": "Invalid value specified for property 'usageLocation' of resource 'User'.",

"innerError": {

"date": "2020-06-26T13:37:46",

"request-id": "f188274e-f80e-4a58-a8e3-b9967d47868a"

},

"details": [

{

"target": "usageLocation",

"code": "InvalidLength"

}

]

}

}


I have tried the following syntax but no luck. Any suggestions?


\"usageLocation\":\"${reqAttr.get('customproperty1')}\"

\"usageLocation\":\"${account.customproperty1}\"

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.
2 REPLIES 2

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on June 26 2020 at 14:36 UTC

Hi Leslie,

Please use "requestAccessAttributes" object to reference the dynamic attributes.


Sample usage:

\"usageLocation\":\" ${requestAccessAttributes?.location}\"

\"usageLocation\":\" ${requestAccessAttributes.location}\"

\"usageLocation\":\" ${requestAccessAttributes?.get('location')}\"

-> Here location is the example name of the dynamic attribute which will be mapped to customproperty1 in accounts table.


Please refer to the REST connector guide for more details and examples. The "developers handbook" section covers a lot of examples.


Thanks.

Nishar

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 June 26 2020 at 15:05 UTC

Hi Nishar


Appreciate the lightening response, it worked..Kudos to you


Also, appreciate you redirecting me to the developer handbook. Didn't know the REST connector guide had a developer handbook until you mentioned. That section indeed has alot of helpful information.


Thanks once again.


Good to close this topic!


Regards,

Leslie

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.