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

REST Connector Use cases

pivitale
New Contributor III
New Contributor III

We are working on a REST connector to provision Azure AD, and we have a couple of use cases:

- provisioning phone Number: Azure won't accept null/void value.. so we want to set a default value in case the user hasn's a phone number.. we are trying with something like this, but isn't working:

\"Username\": \"${user.systemUserName==null? '': user.systemUserName}\"

 - also we want to use the dynamic attribute to dynamically set the email domain of the users based on the country in which the users works, how can we recall the dynamic attribute on the connector? we are trying with this but it isn't working:

requestAccessAttributes.get('AccountType')

Regards

PV

5 REPLIES 5

rushikeshvartak
All-Star
All-Star
${requestAccessAttributes.AccountType} for Dynamic Attribute
 

${(user.systemUserName!=null ? user.systemUserName:''}


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

pivitale
New Contributor III
New Contributor III

Hello,

to retrieve the dynamic attribute on the REST connector we have used ${test_1} (the name of the attribute, with the following result:

- when the attribute is set like this

pivitale_0-1655715472127.png

the connector writes the default value in azure namely "TEST". But we want to write the value resulting from the query.

- so we tried without setting a default value, and what we obtain is this:

pivitale_1-1655715793142.png

it writes the name of the variables on Azure

- the third attempt was to attach the query on the default value like this:

pivitale_2-1655715889370.png

and what we obtain is that the WSRETRY job fails without additional info on the error.

How we can write a value from a query in the specific field in azure?

 

Thanks for your attention and effort!

  

Your JSON has issue. can you share same


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

pivitale
New Contributor III
New Contributor III
{
"call":[
{
"name":"call1",
"connection":"userAuth",
"url":"https://graph.microsoft.com/v1.0/users/${account.accountID}",
"httpMethod":"PATCH",
"httpParams":"{\"surname\":\"${user.lastname}\",\"department\":\"${Test_1}\"}",
"httpHeaders":{
"Authorization":"${access_token}"


},
"httpContentType":"application/json",
"successResponses":{
"statusCode":[
200,
201,
204,
205
]
}
}
]
}

There you go!

You can try :  \"department\":\"${requestAccessAttributes.get('Test_1')}\

 

Regards,

Avinash Chhetri

Regards,
Avinash Chhetri