cancel
Showing results for 
Search instead for 
Did you mean: 

Determining MSKEYVALUE for MX_PERSON when creating an entry via the UI

paul_abrahamson_sap
Active Participant
0 Kudos

Hi,

We have two golden sources for new identities Staff from HCM, Students from our Student Record system. For these sources we can call a custom script to generate their MSKEYVALUE (IT Account Id) using their First Name and Surname etc. We then append a unique no for each prefix combination, so for example Paul Evans has an Id of PE1, the next person with the same prefix, e.g. Philip Edmonson will get PE2 etc.

We have this all working ok. However when we wish to create manual identities via the UI, if we expose MSKEYVALUE on the screen it is mandatory. However we want to be able to have a script called during the saving of the MX_PERSON record, to derive this MSKEYVALUE from their names as entered on the UI.

We've tried leaving MSKEYVALUE of the UI, IdM then automatically assignes a value like MX_9999 where 9999 is the MSKEY of the record. However we cannot get a provisioning task to then change the MSKEYVALUE by calling our script.

Anyone done something like this before?

Cheers

Paul

Accepted Solutions (1)

Accepted Solutions (1)

thomas_groth2
Explorer
0 Kudos

Hello Paul,

you can just add another action task (to generic) to your UI-Task, where you change the automatic mskeyvalue to your own. You can do it by a script that uses:

uIS_SetValue(mskey,0,"MSKEYVALUE",newMSKEYVALUE);

That works for us.

Best regards,

Thomas

paul_abrahamson_sap
Active Participant
0 Kudos

Thanks Thomas,

We were trying to do it via a To Identity Store pass which meant you couldn't really map MSKEYVALUE twice. The generic pass with a script works.

Also glad to learn that you can set attributes via a script via the internal function. In the help file for internal functions this uIS_SetValue function is not listed and I could seem to find anywhere which had the details of this function. However, searching the help file for the uIS_SetValue function does return the help for it.

This works on our system now. Brilliant!

-Paul

Answers (0)