How to convert Given Name to mixed case

  • 7016534
  • 22-May-2015
  • 22-May-2015

Environment

NetIQ Identity Manager 4.5
Policy Builder

Situation

How do you convert an attribute, such as Given Name to a mixed case?
Example:    BOB to Bob

Resolution

Here is a sample policy that will do that.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC "Mixed Case Conversion Policy" "Example Policy on how to convert Given Name to mixed case."><policy xmlns:es="https://www.novell.com/nxsl/ecmascript">
    <rule disabled="true">
        <description>Mixed Case Conversion Policy for Given Name</description>
        <conditions>
            <and>
                <if-class-name mode="nocase" op="equal">User</if-class-name>
            </and>
        </conditions>
        <actions>
            <do-reformat-op-attr name="Given Name">
                <arg-value type="string">
                    <token-upper-case>
                        <token-substring length="1">
                            <token-op-attr name="Given Name"/>
                        </token-substring>
                    </token-upper-case>
                    <token-lower-case>
                        <token-substring start="1">
                            <token-op-attr name="Given Name"/>
                        </token-substring>
                    </token-lower-case>
                </arg-value>
            </do-reformat-op-attr>
        </actions>
    </rule>
</policy>

Action as shown in  Policy Builder



Additional Information

This is one example of what you can do with Policy Builder in Identity Manager.
Please note that driver customization is not supported by Technical Support.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.