Skip to main content

Software  >  WebSphere  >  WebSphere Portal Family  >  

How to add a user attribute to a file based registry for IBM WebSphere Portal development systems?

 Technote (FAQ)
 
Question
For development systems it is often required to add a specific user attribute to the file based user registry. How to configure a file based user registry to recognize an additional user attribute?
 
Answer
In order to add a user attribute to the file based user registry the wim configuration files need to be updated. Execute the following tasks to add an new attribute to the file based user registry.
  1. Open the file <WPProfileRoot>/wp_profile/config/cells/<cellname>/wim/model/wimdomain.xsd where <WPProfileRoot> is the profile directory and <cellname> is the cell name of your IBM WebSphere Portal installation. Add the following element to the element section of the file:

    <xsd:element name="
    <theNewAttribute>" type="xsd:string"/>

    Replace <theNewAttribute> with your name of the new attribute
  2. Include the following element into the PersonPropertyGroup element of the wimdomain.xsd file:

    <xsd:element maxOccurs="1" minOccurs="0" ref="<theNewAttribute>"/>

    Example:


    <xsd:group name="PersonPropertyGroup">
     <xsd:sequence>
       […]
       <xsd:element maxOccurs="1" minOccurs="0" ref="
    <theNewAttribute>"/>
     </xsd:sequence>
    </xsd:group>
  3. Finally add the new attribute to the appropriate users in the file based registry. Therefore open <WPProfileRoot>/wp_profile/config/cells/<cellname>/fileRegistry.xml andadd the following element:

    <wim:theNewAttribute>Value</wim:theNewAttribute>

    to the user entries.

    Example of the fileRegistr.xml file:

    <wim:entities xsi:type="wim:PersonAccount">
    <wim:identifier externalId="efca5420-e783-4518-9469-3bb7db590c99"
    externalName="uid=testuser1,o=defaultWIMFileBasedRealm"
    uniqueId="efca5420-e783-4518-9469-3bb7db590c99"
    uniqueName="uid=testuser1,o=defaultWIMFileBasedRealm"/>
     [...]
     <wim:uid>testuser1</wim:uid>
     <wim:cn></wim:cn>
     <wim:sn>testuser1_lastname</wim:sn>
     <wim:givenName>testuser1_first</wim:givenName>
     <wim:
    <theNewAttribute>>Value</wim:<theNewAttribute>>
    </wim:entities>

  4. Restart the IBM WebSphere_Portal server

The new user attribute is now ready to be used with IBM WebSphere Portal.

Note: Using the built-in file repository is not recommended in a production environment.
 
 
 

Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.
Rate this page
Please take a moment to complete this form to help us better serve you.
This material provides me with the information I need.




This material is clear and easy to understand.




Did the information help you to achieve your goal?
What updates, improvements, or related information would you like to see in this document?
Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.
Input the verification number to submit feedback:
Document information
 Product categories:
 Software
 Organizational Productivity, Portals & Collaboration
 Portals
 WebSphere Portal
 Operating system(s):
  AIX, HP-UX, Linux, Solaris, Windows, i5/OS, z/OS
 Software version:
  6.1
 Software edition:
  Enable, Express, Extend, Server
 Reference #:
  1396064
 IBM Group:
 Software Group
 Modified date:
 2009-10-30

Translate My Page
 
 

Rate this page

Help us improve this page. Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.