and more in a single search tool across platforms. Read the announcement here. |
06/17/2022 02:54 AM
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
06/17/2022 05:18 AM - edited 06/17/2022 10:00 AM
${(user.systemUserName!=null ? user.systemUserName:''}
06/20/2022 02:06 AM
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
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:
it writes the name of the variables on Azure
- the third attempt was to attach the query on the default value like this:
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!
06/20/2022 07:27 AM
Your JSON has issue. can you share same
06/20/2022 07:36 AM
{
"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!
06/20/2022 07:55 AM
You can try : \"department\":\"${requestAccessAttributes.get('Test_1')}\
Regards,
Avinash Chhetri