Have a requirement to display the list of Initiator's Department on the Create User Form in Identity Portal during create user use case through Portal. The Initiator's departments are stored in a Multi-Valued attribute in his user profile in the CA Ldap Store.
I am using the function api.getRequester() in the Create User Form Handler, but this looks not working to display as a Searchable List or Multi Valued Text.
Trying using the Text, just displays one department of the initiator and not the whole list (Just tested, I know this would not work for Multi-Valued Attribute)
Any way or anybody had similar use case, to display Initiator's Multi-Valued attribute in a searchable list or multi-text attribute or any other in the Identity Portal Form, from where the Initiator can select one of the available choices to register a new user..
A support case was opened and resolved.
Orignal code used display type as "Text" and Initialization Handler : prop.value = api.getRequester().userData['Orgenhet'];
Set display type as "Multi-Text" and modified the handler code as below : prop.values = api.getRequester().userData['Orgenhet'];