[midPoint] Email notification cannot get username

Ian Chen ianchen.op at gmail.com
Fri Nov 10 05:19:39 CET 2017


Hi List,

I'm running midpoint 3.5 in tests, importing HR data and create Active
Directory account. Then email out the AD username and initial password. The
setup works fine until recently.

Please help!


* Old setup:

Use employee # as name in midpoint, create AD account, store in
extension/adAccount.


* What's changed:

Added unique AD username, by adding <postIterationCondition>

midpoint.isUniquePropertyValue(focus, 'extension/adAccount', username)


* Error and attempts:

Now in email notification <accountPasswordNotifier>, the adAccount cannot
be read. Which used to be OK and other extension attributes can be read.

String userId = requestee?.getName().getOrig()
users = midpoint.searchObjectByName(UserType.class, userId)
...
adAccount = basic.getExtensionPropertyValue(user, '
http://example.com/xml/ns/mySchema', 'adAccount')


I also tried to get it from shadow, failed too.

userAdShadow = midpoint.getLinkedShadow(user, adResourceOID,
ShadowKindType.ACCOUNT, 'default')

userAdShadow is null


Regards,
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171110/694a7666/attachment.htm>


More information about the midPoint mailing list