and more in a single search tool across platforms. Read the announcement here. |
03/25/2024 08:34 AM
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
03/25/2024 07:43 PM
What is error you are getting in logs