In Maximo Application Suite 8.11 and earlier
versions, the person ID is equal to the user ID in
Maximo® Manage.
If you are migrating users from Maximo Asset Management to Maximo Application Suite from an LDAP server and the person ID is
different than the user ID, you can configure the user data to maintain the person ID
data.
About this task
When a user is added in Maximo Application Suite, the user
ID is created as the primary identifier for that user. When user
synchronization occurs with
Maximo Manage, the user ID is added in
Maximo Manage as the user ID and the person ID.
If you need to maintain separate person ID data to meet your business needs, create an automation
script in
Maximo Manage that copies the value from the LDAP
employeeNumber
field to the personid
field during the user
synchronization process. You can also use this automation script to map to other fields in
Maximo Manage.
If the field you are using in the LDAP server is not employeeNumber
, you must
also map the field to employeeNumber
in the ScimCfg
LDAP
configuration record.
Procedure
-
Create an automation script that copies the value from the
employeeNumber
field to the personid
field,
- In
Maximo Manage, open the Automation Scripts
application.
- From the More Actions menu, select
.
- In the Integration Details section, select Enterprise Services
and in the Enterprise Service field, select MASPERUSER.
- Select Request, User Exit, and
After External Exit.
- In the Script Details section, enter the following code as Jython code:
from com.ibm.tivoli.maximo.oslc import OslcUtils
from com.ibm.tivoli.maximo.oslc.provider import OslcJSONStructureData
data = irData.getDataAsBytes()
dataEr = erData.getDataAsBytes()
jo = OslcUtils.bytesToJSONObject(data)
erJo = OslcUtils.bytesToJSONObject(dataEr)
if erJo.get("owner").upper() == 'SCIM':
extjo = jo.get("extension")
empno = extjo.get("employeeNumber")
jo.put("personid",empno)
irData = OslcJSONStructureData(jo,"MASPERUSER","PERSON",userInfo,"Sync",True)
- If the field in the LDAP server is not
employeeNumber
, update the
ScimCfg
LDAP configuration record to map the field to
employeeNumber
.
- In Red Hat® OpenShift®, from the side navigation menu, click
.
- On the CustomResourceDefinitions page, search for and open the
ScimCFG
custom resource definition.
- On the Instances tab, search for and open the CR that starts
with the Maximo Application Suite instance ID.
For example,
<your_mas_instance>-scim-default-system.
- On the YAML tab, in the
spec:
section under
usersync
, map the field to employeeNumber
.
For example, if the field in LDAP is named
employeeID
, add the following
configuration in
spec.usersync
to map to
employeeNumber
.
userSync:
mappings:
extensions:
employeeNumber: employeeID