Placing Users in Contexts with the IDM Mapping Table



By: dgersic

May 2, 2007 6:50 am

Reads: 208

Comments:0

Rating:0

Problem

A Forum reader recently asked:

“I have created a mapping table with 3 columns (Location, Department and Context Code). I would like to create a placement rule that places the users in the correct eDirectory context, based on the Context code. The locations and department names in the table match the OUs in the tree. Does anyone know how to create a placement rule to use the mapping table?”

And here’s the response from David Gersic …

Solution

Here’s one I did. I used departmentNumber as the index in to the mapping table, and I put a default phone number attribute on the user as part of the create:

<rule>
 <description>Add Department Phone Number</description>
 <conditions>
  <and>
   <if-class-name mode="nocase" op="equal">User</if-class-name>
  </and>
 </conditions>
 <actions>
  <do-add-dest-attr-value name="Telephone Number">
   <arg-value>
    <token-map dest="Default Phone Number" src="Department Number"
table="\[root]\niu\IDM\Policy and Data Library\Department Data Mapping
Table">
     <token-op-attr name="departmentNumber"/>
    </token-map>
   </arg-value>
  </do-add-dest-attr-value>
 </actions>
</rule>
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: ,
Categories: Identity Manager, Technical Solutions

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment