Notes driver : Add members to group


Hello,

I have to add members to Lotus Notes groups, but I always get this
error :
Modify entry failed: no association ID!


I've read the coolsolution (Lotus Notes: Adding Group Membership during
"Add User" ('Cool Solutions: Lotus Notes: Adding Group Membership during
\"Add User\"' (http://www.novell.com/coolsolutions/feature/17953.html))

I also use informations (which works with AD) from a reply to one of my
previous post on this forum
:http://forums.novell.com/novell-prod...-template.html)


Groups exists in Lotus Notes.
I don't want to synchronize groups with IDV.
I try to add one "Members" during an ADD, with user's DN and group DN
in Lotus Notes.

Here is a rule I use :
<rule>
<description>User : Add to Pole's group if property
exists</description>
<conditions>
<and>
<if-op-property name="Notes_Add_To_Pole" op="available"/>
<if-op-property mode="nocase" name="Notes_Add_To_Pole"
op="not-equal"/>
</and>
</conditions>
<actions>
<do-add-src-attr-value class-name="Group" name="Members">
<arg-dn>
<token-op-property name="Notes_Add_To_Pole"/>
<token-text xml:space="preserve">/</token-text>
<token-global-variable name="ccimp.notes.groups"/>
</arg-dn>
<arg-value type="dn">
<token-dest-dn/>
</arg-value>
</do-add-src-attr-value>
<do-set-xml-attr
expression="../modify[last()]/modify-attr[last()]/add-value[last()]/value[last()]"
name="association-ref">
<arg-string>
<token-xpath expression="./text()"/>
</arg-string>
</do-set-xml-attr>
</actions>
</rule>





Following is the level 3 trace of the rule's exec :
[06/28/10 14:30:39.597]:notes ST: Evaluating selection criteria for
rule 'User : Add to Pole's group if property exists'.
[06/28/10 14:30:39.598]:notes ST: (if-op-property 'Notes_Add_To_Pole'
available) = TRUE.
[06/28/10 14:30:39.598]:notes ST: (if-op-property 'Notes_Add_To_Pole'
not-equal "") = TRUE.
[06/28/10 14:30:39.599]:notes ST: Rule selected.
[06/28/10 14:30:39.599]:notes ST: Applying rule 'User : Add to Pole's
group if property exists'.
[06/28/10 14:30:39.595]:notes ST: Action:
do-add-src-attr-value("Member",class-name="Group",arg-dn(token-op-property("Notes_Add_To_Pole")+"/"+token-global-variable("comp.notes.groups")),token-dest-dn()).
[06/28/10 14:30:39.596]:notes ST:
arg-dn(token-op-property("Notes_Add_To_Pole")+"/"+token-global-variable("comp.notes.groups"))
[06/28/10 14:30:39.596]:notes ST:
token-op-property("Notes_Add_To_Pole")
[06/28/10 14:30:39.597]:notes ST: Token Value: "ADMINISTRATION
FINANCES".
[06/28/10 14:30:39.597]:notes ST: token-text("/")
[06/28/10 14:30:39.597]:notes ST:
token-global-variable("comp.notes.groups")
[06/28/10 14:30:39.601]:notes ST: Token Value: "comp/FR".
[06/28/10 14:30:39.602]:notes ST: Arg Value: "ADMINISTRATION
FINANCES/comp/FR".
[06/28/10 14:30:39.602]:notes ST: arg-string(token-dest-dn())
[06/28/10 14:30:39.602]:notes ST: token-dest-dn()
[06/28/10 14:30:39.602]:notes ST: Token Value:
"\IDV-INT\comp\Users\testGN13 testSN13".
[06/28/10 14:30:39.603]:notes ST: Arg Value:
"\IDV-INT\comp\Users\testGN13 testSN13".
[06/28/10 14:30:39.599]:notes ST: Action:
do-set-xml-attr("association-ref","../modify[last()]/modify-attr[last()]/add-value[last()]/value[last()]",token-xpath("./text()")).
[06/28/10 14:30:39.600]:notes ST: arg-string(token-xpath("./text()"))
[06/28/10 14:30:39.600]:notes ST: token-xpath("./text()")
[06/28/10 14:30:39.600]:notes ST: Token Value:
"EB7E66D934B6B726C125775000449C08".
[06/28/10 14:30:39.601]:notes ST: Arg Value:
"EB7E66D934B6B726C125775000449C08".



Thanks for your help

Gilles


--
gbastie
------------------------------------------------------------------------
gbastie's Profile: http://forums.novell.com/member.php?userid=31736
View this thread: http://forums.novell.com/showthread.php?t=414413