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

storing ProxyAddresess in USERATTRIBUTE_EMAIL

sppnra
Regular Contributor
Regular Contributor

Hi Saviynt team,

I am facing an issue while trying to store ProxyAddresses in USERATTRIBUTE_EMAIL from AzureAD. Its not able to store all the ProxyAddresses which I can see in Postman. I am also storing the ProxyAddress in CP60 and it's able to store the ProxyAddress for all the users. But not able to in USERATTRIBUTE_EMAIL.

 

{
"connection": "AzureADProvisioning",
"url": "https://graph.microsoft.com/v1.0/users?$select=Id,userPrincipalName,accountEnabled,mail,ProxyAddress...",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"statusConfig": {
"active": "true",
"inactive": "false"
},
"colsToPropsMap": {
"email": "userPrincipalName~#~char",
"statuskey": "accountEnabled~#~char",
"firstname": "givenName~#~char",
"customproperty54": "employeeId~#~char",
"customproperty60": "#CONST#${List responseList = response.proxyAddresses;List newList=[];for(int i=0;i<responseList.size();i++){if(responseList[i].startsWith('smtp:') || responseList[i].startsWith('SMTP:')){newList+=responseList[i].substring(responseList[i].lastIndexOf(':')+1,responseList[i].size());};};if(newList.size()>0){return newList.join(', ')};else{return null};}~#~char",
"USERATTRIBUTE_EMAIL": "#CONST#${List responseList = response.proxyAddresses;List newList=[];for(int i=0;i<responseList.size();i++){if(responseList[i].startsWith('smtp:') || responseList[i].startsWith('SMTP:')){newList+=responseList[i].substring(responseList[i].lastIndexOf(':')+1,responseList[i].size());};};if(newList.size()>0){return newList.join(', ')};else{return null};}~#~char",
"customproperty62": "userPrincipalName~#~char",
"lastname": "surname~#~char"
},
"userResponsePath": "value",
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('@odata.nextLink')==null)? null : response?.completeResponseMap?.get('@odata.nextLink')}"
}
}
}

 

Please let me know what may be the issue. Or there is another way to do this

1 REPLY 1

rushikeshvartak
All-Star
All-Star

What is error you are getting in logs


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