Monday, September 19, 2011

Sun IDM 7.1--5. How do I go about adding an extended attribute to the lighthouse user object, so that I can find users, via this attribute, or use this attribute in the resource dn templates, etc?

You add the values to the object: Configuration:User Extended Attributes
Example for attribute employeeId:
  <Extension>
    <List>
      <String>firstname</String>
      <String>lastname</String>
      <String>fullname</String>
      <String>employeeId </String>
    </List>
  </Extension>

Then add the same value to the sections SummaryAttrNames, QueryableAttrNames, AppletColumns, FindResults, FindSearchAttrs and RepoIndexAttrs in the object: Configuration:UserUIConfig
Ex:
    <SummaryAttrNames>
      <List>
        <String>role</String>
        <String>res</String>
        <String>prov</String>
        <String>dis</String>
        <String>lhdis</String>
        <String>MemberObjectGroups</String>
        <String>firstname</String>
        <String>lastname</String>
        <String>employeeId</String>
        <String>hasCapabilities</String>
      </List>
    </SummaryAttrNames>

Then you need to restart your application server.

Then you can create a field in user form / end user form etc
Ex:
      <Field name='global.employeeId'>
        <Display class='Text'>
          <Property name='title' value='Employee ID'/>
          <Property name='size' value='32'/>
          <Property name='maxLength' value='128'/>
        </Display>
      </Field>

The value will then get saved into the users object:
Ex:
  <Attribute name='firstname' type='string' value='Bill'/>
  <Attribute name='fullname' type='string' value='Bill The Cat/>
  <Attribute name='lastname' type='string' value='Cat'/>
  <Attribute name='employeeId' type='string' value='12345'/>

This extended attribute will also show up in the select list available for use in resource dn templates.

No comments:

Post a Comment