03/08/2023
07:47 AM
- last edited on
03/09/2023
10:31 AM
by
Dave
Hi Team,
We are using below query in our update account json, update account task are created but not getting completed,
"userPrincipalName":"${user.customproperty1.toString().concat(user.customproperty1,'@emea.xxxxxx.test')}",
attaching the error for reference:
Error processing task of ADSI - Ambiguous method overloading for method java.lang.Exception#<init>. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.Throwable] [class java.lang.String]
Please help us to resolve this issue.
Thanks,
Saimeghana
[This post has been edited by a Moderator to remove sensitive information.]
03/08/2023
08:43 AM
- last edited on
03/09/2023
10:31 AM
by
Dave
Can you try with the below once and see if it works
"userPrincipalName":"{String UPN = user.customproperty1;return UPN.concat(user.customproperty1).concat('@emea.xxxxxx.test');}"
[This post has been edited by a Moderator to remove sensitive information.]
03/08/2023 09:25 AM
Hi Sahil,
Update account task got completed but updates are not coming up to user.
Thanks,
Saimeghana
03/08/2023 09:27 AM
Can you check in the logs if the above function did resolve to a value.
03/08/2023 09:55 AM
attached the error below
{"log":"2023-03-08 17:50:04,144 [quartzScheduler_Worker-2] ERROR services.SaviyntCommonUtilityService - error in getXegerString: \n","stream":"stdout","time":"2023-03-08T17:50:04.144172555Z"}
03/08/2023 10:40 AM
This does not contain the attribute values. Can you search for userPrincipalName and see if the expected value is getting generated or if its another value.
03/08/2023
06:16 PM
- last edited on
03/09/2023
10:38 AM
by
Dave
Hi,
searched with UserPrincipalName, but in logs it's not showing update for my test user.
03/08/2023
10:39 AM
- last edited on
03/09/2023
10:34 AM
by
Dave
there is an error on your query please try this one
"userPrincipalName": "${user.customproperty1}@emea.xxxxxx.test"
you dont need a concat there
[This post has been edited by a Moderator to remove sensitive information.]
03/08/2023 06:11 PM
Hi,
No, having same issue task got completed but no updated to user.
Thanks,
saimeghana
03/09/2023
07:50 AM
- last edited on
03/09/2023
10:38 AM
by
Dave
I do see the userPrincipalName getting resolved to the value intended (userPrincipalName:name.besson2@emea.xxxxxxtest.net) in the logs. It appears the issue might be due to some other value. Just to be sure, can you define a static value for this attribute and try to provision. This will help us confirm if the issue is due to this attribute or some other.
Also do share the complete json you are using.
[This post has been edited by a Moderator to remove sensitive information.]
03/09/2023
08:02 AM
- last edited on
03/09/2023
10:38 AM
by
Dave
Hi Sahil,
The (userPrincipalName:name.besson2@emea.xxxxxxtest.net) is got updated depending on the java jar job.
This UPN is dependent on samaccount name attribute, we will update the samaccount name from user update form, so we need a query where it will Update the UPN depending on samaccount name.
Thanks,
saimeghana
[This post has been edited by a Moderator to remove sensitive information.]
03/20/2023 04:15 PM
Hi @saimeghana
I understand you want to use the updated samAccountName as a substring in your UPN. Which user or SSM account attribute is the samAccountName being reconciled/imported/mapped to?
Can you share some samples, please? With the user's samAccountName and the expected UPN for it?
cc: @sahil