IBM Support

Using the WSADMIN tool to add custom attributes to VMM

Question & Answer


Question

How do I add custom or non existing attributes to the VMM Schema using the WSADMIN tool?

Cause

VMMSYNC will not synchronize data that does not have an attribute defined in the PersonAccount entity. After setting up a trace, this error appears in SystemOut.log:
com.ibm.websphere.wim.exception.PropertyNotDefinedException: CWWIM4516E  The 'memberof' property is not defined for the '[PersonAccount]' entity type.

Answer


1) From Websphere\AppServer\bin type wsadmin.bat and login with your Websphere Credentials
2) From the wsadmin command line type the following, for this example I used the memberOf Active Directory attribute and added it to the PersonAccount entity on the VMM Repository

$AdminTask addIdMgrPropertyToEntityTypes {-name memberof -dataType string -entityTypeNames PersonAccount}

3) Synchronize the node by running syncnode.bat in 'ibm\websphere\appserver\profiles\ctgappsrv01\bin'

'syncnode.bat yourhostname'

You will be prompted for your wasadmin username and password

4) Restart your MXServer and you should now be able to sync data from the latest attribute added to the VMM Repository for the PersonAccount entity

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"ARM Category":[{"code":"a8m50000000CbCJAA0","label":"System->Application Server Security"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.0;7.6.0;7.6.1","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
26 May 2020

UID

swg21573667