Hello,

I have an AD driver which populates users from Identity Vault to AD
application.
In this AD application, there are user templates which are associated
to groups.

For example, I have a user template "temp_user_service1" which is
associated to "group1" and to "group2".
What I would like is to associate a new user "myUser" of AD with all
the groups linked to "temp_user_service1".

In other words, I need to link "myUser" of AD with the groups linked
with "temp_user_service1".
I have created a subscriber command transformation rule but I don't see
how to say "take the same groups of "temp_user_service1".

Do you have an idea ?
Thank you,

Christine

<rule>
<description>Add new user to associated groups 1</description>
<conditions>
<and>
<if-operation op="equal">modify</if-operation>
<if-class-name op="equal">User</if-class-name>
</and>
</conditions>
<actions>
<do-set-local-variable name="groupAssociations" scope="policy">
<arg-string>
<token-xpath expression='query:search
($destQueryProcessor,"subtree","","ou=Finances,ou= Poles,dc=alpha,dc=fr","Group","CN","DomainUsers"," groupAssociations")/attr[@attr-name="groupAssociations"]/value'/>
</arg-string>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-src-attr name="Group Membership"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable name="groupAssociations">
<arg-node-set>
<token-local-variable name="groupAssociations"/>
<token-xpath expression="query:readObject($srcQueryProcessor, '',
$current-node, 'Group','')/association/text()[. != '']"/>
</arg-node-set>
</do-set-local-variable>
</arg-actions>
</do-for-each>
<do-for-each>
<arg-node-set>
<token-local-variable name="groupAssociations"/>
</arg-node-set>
<arg-actions>
<do-add-dest-attr-value class-name="Group" name="Member">
<arg-association>
<token-local-variable name="current-node"/>
</arg-association>
<arg-value type="string">
<token-dest-dn/>
</arg-value>
</do-add-dest-attr-value>
</arg-actions>
</do-for-each>
</actions>
</rule>


--
coves
------------------------------------------------------------------------
coves's Profile: http://forums.novell.com/member.php?userid=4568
View this thread: http://forums.novell.com/showthread.php?t=324996