Hi,
I want to generate emailId as firstname.lastname@mydomain.com,but if
there is another person with same first name and last name then it
should append a counter to the new emailID.I tried writing a rule but
that rule is not appending a counter.
Please find below the rule which i have written:-

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:\Program Files
(x86)\Novell\Designer\plugins\com.novell.idm.polic ybuilder_4.0.0.201206110753\DTD\dirxmlscript4.0.2. dtd"><policy>
<rule>
<description>Generate EmailId</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
</and>
</conditions>
<actions>
<do-add-dest-attr-value class-name="User" name="Internet EMail
Address">
<arg-value type="string">
<token-unique-name counter-pattern="last" counter-use="fallback"
name="Internet EMail Address" on-unavailable="error"
test-all-objects="false">
<arg-string>
<token-replace-all regex=" " replace-with="."/>
<token-attr name="Full Name"/>
</arg-string>
</token-unique-name>
<token-text xml:space="preserve">@mydomain.com</token-text>
</arg-value>
</do-add-dest-attr-value>
</actions>
</rule>
</policy>

Can you pleae let me know how to do it?

Thanks and Regards,
Vijay Deepak


--
vijaydeepak33
------------------------------------------------------------------------
vijaydeepak33's Profile: https://forums.netiq.com/member.php?userid=3319
View this thread: https://forums.netiq.com/showthread.php?t=47786