+

Search Tips   |   Advanced Search

Remove attributes



Overview

Due to a Virtual Member Manager (VMM) limitation, there is currently no task to update an attribute. If we added an attribute to the property extension database or when adapting attributes to match the LDAP server that were spelled incorrectly or already added due to migration, remove the attribute from the database.

Do not remove attributes that have already been populated with user values because this can cause database inconsistencies.


Remove an attribute from the database

  1. Run backupConfig

  2. Edit the database and verify the attribute name is in LAPROP table.

  3. Delete the required attributes from the LAPROP table.

  4. Edit...

    ...and delete the propertySchema definition for the deleted attribute...

    <wim:propertySchema nsURI="http://www.ibm.com/websphere/wim" 
                        dataType="String"
                        multiValued="true" 
                        propertyName="attribute_name">
    
          <wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames>
    
    </wim:propertySchema>
    

  5. Edit...

      WP_PROFILE/config/cells/cellname/wim/config/wimconfig.xml

    ...delete the attributes or propertiesNotSupported definitions for the attributes deleted from the LAPROP table...

    <config:attributes name="attribute_name" 
                       propertyName="attribute_name">
    
        <config:entityTypes> PersonAccount </config:entityTypes>
        <config:entityTypes> Group </config:entityTypes>
    
    </config:attributes>
    

    ...or...

    <config:propertiesNotSupported name="attribute_name">
    

  6. Save the changes to wimconfig.xml.

  7. Stop and restart the WebSphere_Portal server


Remove an attribute not stored in a property extension database

  1. Open wimxmlextension.xml.

  2. Delete the propertySchema definition for the attributes you previously added:
    <wim:propertySchema nsURI="http://www.ibm.com/websphere/wim" 
                        dataType="String"
                        multiValued="true" 
                        propertyName="attribute_name">
    
       <wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames>
    
    </wim:propertySchema>
    

  3. Edit wimconfig.xml

  4. Delete the stanza that corresponds to the custom attribute you deleted from wimextension.xml;

    <config:attributes name="attribute_name" 
                       propertyName="property_name">
    
                <config:entityTypes>PersonAccount</config:entityTypes>
    
     </config:attributes>
    

  5. Save the changes to wimconfig.xml.

  6. Stop and restart the WebSphere_Portal server.


Parent: Manage user data