<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Dharmendra,<br>
      <br>
      good question! <br>
      <br>
      (I expected there is no existing <attribute> element.)<br>
      <br>
      Actually, I'm not sure what would happen. I would suggest avoiding
      such a situation.<br>
      <br>
      So, if there is an existing <attribute> element, it is
      possible to change the modification type (in line #3 in java
      source below) from ADD to REPLACE. And list all the groups
      (groupA, groupB, groupC, groupD, groupE) in it.<br>
      <br>
      I've not tested that, but it should work.<br>
      <br>
      Best regards,<br>
      Pavol<br>
      <br>
    </div>
    <blockquote
cite="mid:CAJG9dDvx5k+=qA2z6E=Vq=3P11ZvW349Se6N4yUz+t3vuybn=Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hey Pavol
        <div><br>
        </div>
        <div>This thing works but i am not sure if it is correct because
          if there is a attribute posixGroup with values lets say
          groupA, groupB, groupC now if we add groupD and groupE using
          this approach it will add another posixGroup attribute.</div>
        <div>So basically inducement will now have two attributes with
          different values.</div>
        <div><br>
        </div>
        <div>Is it fine or will it cause some problem in inducement
          enforcement or reconciliation.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Feb 12, 2015 at 4:26 PM, Pavol
          Mederly <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Actually, it works. See last commit - this code:<br>
                <br>
                <p><small><span style="font-family:"Courier
                      New"">     private static void
                      modifyRoleModifyInducement(ModelPortType
                      modelPort, String roleOid) throws IOException,
                      SAXException, FaultMessage {</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>        </span>ItemDeltaType
                      inducementDelta = new ItemDeltaType();</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>        </span>inducementDelta.setModificationType(ModificationTypeType.ADD);</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>        </span>inducementDelta.setPath(ModelClientUtil.createItemPathType("inducement[3]/construction/attribute"));</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>        </span>inducementDelta.getValue().add(ModelClientUtil.parseElement("<value>\n"

                      +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>       
                      </span><ref
                      xmlns:ri=\<a moz-do-not-send="true"
                        href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%5C"
                        target="_blank">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3\"</a>>ri:pager</ref>\n"

                      +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>       
                      </span><outbound>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>           
                      </span><expression>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>               

                      </span><value>00-000-001</value>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>               

                      </span><value>00-000-003</value>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>           
                      </span></expression>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>       
                      </span></outbound>\n" +</span></small></p>
                <small> </small>
                <p><small><span style="font-family:"Courier
                      New""><span>                </span>"<span>   
                      </span></value>"));</span></small></p>
                <span class=""> <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""> </span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>ObjectDeltaType
                        deltaType = new ObjectDeltaType();</span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>deltaType.setObjectType(ModelClientUtil.getTypeQName(RoleType.class));</span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>deltaType.setChangeType(ChangeTypeType.MODIFY);</span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>deltaType.setOid(roleOid);</span></small></p>
                  <small> </small> </span>
                <p><small><span style="font-family:"Courier
                      New""><span>        </span>deltaType.getItemDelta().add(inducementDelta);</span></small></p>
                <span class=""> <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""> </span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>ObjectDeltaListType

                        deltaListType = new ObjectDeltaListType();</span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>deltaListType.getDelta().add(deltaType);</span></small></p>
                  <small> </small>
                  <p><small><span style="font-family:"Courier
                        New""><span>        </span>ObjectDeltaOperationListType
objectDeltaOperationList

                        = modelPort.executeChanges(deltaListType, null);</span></small></p>
                  <small><span><span>    </span>}<br>
                      <br>
                    </span></small></span>Best regards,<br>
                Pavol<br>
                <br>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite"><small> </small>
                    <div>Hello Dharmendra,<br>
                      <br>
                      yes, I've not noticed that.<br>
                      <br>
                      In that case, there are two possibilities:<br>
                      <br>
                      (1) You can safely delete + recreate the
                      inducement, as I proposed. It should work.<br>
                      (2) You can modify the inducement itself. The XML
                      code would look like this:<br>
                      <br>
                      <font size="-1"><tt><t:itemDelta></tt><tt><br>
                        </tt><tt>    <t:modificationType><b><font
                              color="#cc0000">add</font></b></t:modificationType></tt><tt><br>
                        </tt><tt>    <t:path</tt><tt>><b><font
                              color="#cc0000">inducement[2]/construction/attribute</font></b></t:path></tt><tt><br>
                        </tt><tt>    <t:value></tt><tt><br>
                        </tt><tt>        </tt><tt><ref</tt><tt> </tt><tt>xmlns:qn50=<a
                            moz-do-not-send="true"
                            href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
                            target="_blank">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>qn50:posixGroups</ref></tt><tt><br>
                        </tt><tt>        <outbound></tt><tt><br>
                        </tt><tt>            <expression></tt><tt><br>
                        </tt><tt>               
                          <value>cn=H2,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
                        </tt><tt>               
                          <value>cn=SudoUserGroup_Pset2678,ou=groups,dc=confluxsys,dc=com</tt><tt></value></tt><tt><br>
                        </tt><tt>               
                          <value>cn=ads,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
                        </tt><tt>               
                          <value>cn=dba,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
                        </tt><tt>               
                          <value>cn=db2users,ou=groups,dc=confluxsys,dc=com</value></tt><tt><br>
                        </tt><tt>               
                          <value>cn=devSvnAccess,ou=groups,dc=confluxsys,dc=com</tt><tt></value></tt><tt><br>
                        </tt><tt>            </expression></tt><tt><br>
                        </tt><tt>        </outbound></tt><tt><br>
                        </tt><tt>    </tt><tt></t:value></tt><tt><br>
                        </tt><tt></t:itemDelta></tt><tt><br>
                        </tt></font><br>
                      Actually, I've never done something like this. But
                      it should work.<br>
                      (If not, please let me know.)<br>
                      <br>
                      Best regards,<br>
                      Pavol<br>
                      <br>
                      <br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hi Pavol
                        <div><br>
                        </div>
                        <div>I think here you are deleting the
                          inducement itself but my goal was not to
                          delete the resource inducement but modify some
                          attributes of induced resource. </div>
                        <div><br>
                        </div>
                        <div>Let me know if i am getting it incorrect.</div>
                        <div><br>
                        </div>
                        <div>Thanks!</div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Thu, Feb 12, 2015 at
                          3:23 PM, Pavol Mederly <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:mederly@evolveum.com"
                              target="_blank">mederly@evolveum.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <div>Yes, of course.<br>
                                <br>
                                I've just pushed a modified
                                model-client-sample showing how to swap
                                an inducement (with a known ID) in the
                                role definition.<br>
                                <br>
                                See this (red = removal code, green =
                                addition code):<br>
                                <br>
                                <p><span>    </span>// removes
                                  inducement with a given ID and
                                  replaces it with a new one</p>
                                <p><span>    </span>private static void
                                  modifyRoleReplaceInducement(ModelPortType
                                  modelPort, String roleOid, int oldId,
                                  String newInducementOid) throws
                                  FaultMessage, IOException,
                                  SAXException {</p>
                                <p> </p>
                                <p><font color="#cc0000"><span>        </span>ItemDeltaType


                                    inducementDeleteDelta = new
                                    ItemDeltaType();</font></p>
                                <font color="#cc0000"> </font>
                                <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.setModificationType(ModificationTypeType.DELETE);</font></p>
                                <font color="#cc0000"> </font>
                                <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.setPath(ModelClientUtil.createItemPathType("inducement"));</font></p>
                                <font color="#cc0000"> </font>
                                <p><font color="#cc0000"><span>        </span>inducementDeleteDelta.getValue().add(ModelClientUtil.parseElement("<value><id>"+oldId+"</id></value>"));</font></p>
                                <font color="#cc0000"> </font>
                                <p> </p>
                                <p><span> <font color="#009900">       </font></span><font
                                    color="#009900">ItemDeltaType
                                    inducementAddDelta = new
                                    ItemDeltaType();</font></p>
                                <font color="#009900"> </font>
                                <p><font color="#009900"><span>        </span>inducementAddDelta.setModificationType(ModificationTypeType.ADD);</font></p>
                                <font color="#009900"> </font>
                                <p><font color="#009900"><span>        </span>inducementAddDelta.setPath(ModelClientUtil.createItemPathType("inducement"));</font></p>
                                <font color="#009900"> </font>
                                <p><font color="#009900"><span>        </span>inducementAddDelta.getValue().add(createRoleAssignment(newInducementOid));</font></p>
                                <p> </p>
                                <p><span>        </span>ObjectDeltaType
                                  deltaType = new ObjectDeltaType();</p>
                                <p><span>        </span>deltaType.setObjectType(ModelClientUtil.getTypeQName(RoleType.class));</p>
                                <p><span>        </span>deltaType.setChangeType(ChangeTypeType.MODIFY);</p>
                                <p><span>        </span>deltaType.setOid(roleOid);</p>
                                <p><span>        </span>deltaType.getItemDelta().add(inducementDeleteDelta);</p>
                                <p><span>        </span>deltaType.getItemDelta().add(inducementAddDelta);</p>
                                <p> </p>
                                <p><span>        </span>ObjectDeltaListType

                                  deltaListType = new
                                  ObjectDeltaListType();</p>
                                <p><span>        </span>deltaListType.getDelta().add(deltaType);</p>
                                <p><span>        </span>ObjectDeltaOperationListType

                                  objectDeltaOperationList =
                                  modelPort.executeChanges(deltaListType,
                                  null);</p>
                                <span>    </span>} <br>
                                <br>
                                The corresponding XML is like this
                                (again, red = removal code, green =
                                addition code):<br>
                                <br>
                                    <soap:Body><br>
                                        <ns8:executeChanges
                                xmlns:ns10=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</a>
                                xmlns:ns11=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"</a>
                                xmlns:ns12=<a moz-do-not-send="true"
                                  href="http://www.w3.org/2000/09/xmldsig#"
                                  target="_blank">"http://www.w3.org/2000/09/xmldsig#"</a>
                                xmlns:ns13=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"</a>
                                xmlns:ns14=<a moz-do-not-send="true"
                                  href="http://www.w3.org/2001/04/xmlenc#"
                                  target="_blank">"http://www.w3.org/2001/04/xmlenc#"</a>
                                xmlns:ns15=<a moz-do-not-send="true"
                                  href="http://prism.evolveum.com/xml/ns/public/annotation-3"
                                  target="_blank">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>
                                xmlns:ns16=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/public/common/fault-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/fault-3"</a>
                                xmlns:ns2=<a moz-do-not-send="true"
                                  href="http://prism.evolveum.com/xml/ns/public/types-3"
                                  target="_blank">"http://prism.evolveum.com/xml/ns/public/types-3"</a>
                                xmlns:ns3=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>
                                xmlns:ns4=<a moz-do-not-send="true"
                                  href="http://prism.evolveum.com/xml/ns/public/query-3"
                                  target="_blank">"http://prism.evolveum.com/xml/ns/public/query-3"</a>
                                xmlns:ns5=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a>
                                xmlns:ns6=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3"</a>
                                xmlns:ns7=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3"</a>
                                xmlns:ns8=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/public/model/model-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/model/model-3"</a>
                                xmlns:ns9=<a moz-do-not-send="true"
                                  href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
                                  target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"</a>><br>
                                            <ns8:deltaList><br>
                                                <ns9:delta><br>
                                                   
                                <ns2:changeType>modify</ns2:changeType><br>
                                                   
                                <ns2:objectType>ns3:RoleType</ns2:objectType><br>
                                                   
                                <ns2:oid>290acb64-f64c-4f01-8b5b-c5b745092f27</ns2:oid><br>
                                <font color="#cc0000">                   

                                  <ns2:itemDelta><br>
                                                         
                                  <ns2:modificationType>delete</ns2:modificationType><br>
                                                         
                                  <ns2:path>declare default
                                  namespace '<a moz-do-not-send="true"
                                    href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                                    target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>';



                                  inducement</ns2:path><br>
                                                         
                                  <ns2:value><br>
                                                             
                                  <id>2</id><br>
                                                         
                                  </ns2:value><br>
                                                     
                                  </ns2:itemDelta><br>
                                </font>                    <font
                                  color="#009900"><ns2:itemDelta><br>
                                                         
                                  <ns2:modificationType>add</ns2:modificationType><br>
                                                         
                                  <ns2:path>declare default
                                  namespace '<a moz-do-not-send="true"
                                    href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                                    target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>';



                                  inducement</ns2:path><br>
                                                          <ns2:value
                                  xmlns:xsi=<a moz-do-not-send="true"
                                    href="http://www.w3.org/2001/XMLSchema-instance"
                                    target="_blank">"http://www.w3.org/2001/XMLSchema-instance"</a>
                                  xsi:type="ns3:AssignmentType"><br>
                                                             
                                  <ns3:targetRef
                                  oid="12345678-d34d-b33f-f00d-987987cccccc"
                                  type="ns3:RoleType"/><br>
                                                         
                                  </ns2:value><br>
                                                     
                                  </ns2:itemDelta></font><br>
                                                </ns9:delta><br>
                                            </ns8:deltaList><br>
                                        </ns8:executeChanges><br>
                                    </soap:Body><br>
                                <br>
                                Best regards,<br>
                                Pavol<br>
                                <br>
                              </div>
                              <div>
                                <div>
                                  <blockquote type="cite">
                                    <div dir="ltr">Hi
                                      <div><br>
                                      </div>
                                      <div>I got this point that i can
                                        add and delete individual
                                        attribute/value but i want to
                                        know how can i achieve with java
                                        code or can you give me a sample
                                        xml doing this.</div>
                                      <div><br>
                                      </div>
                                      <div>Regards</div>
                                      <div>Dharmendra</div>
                                    </div>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">On Thu,
                                        Feb 12, 2015 at 1:53 PM, Pavol
                                        Mederly <span dir="ltr"><<a
                                            moz-do-not-send="true"
                                            href="mailto:mederly@evolveum.com"
                                            target="_blank">mederly@evolveum.com</a>></span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div bgcolor="#FFFFFF"
                                            text="#000000">
                                            <div>Hello Dharmendra,<span><br>
                                                <br>
                                                <blockquote type="cite">If
                                                  the replace does not
                                                  work how can i
                                                  individually
                                                  add/delete
                                                  attributes/values ?</blockquote>
                                                <br>
                                              </span> REPLACE replaces
                                              the whole inducement, i.e.
                                              all of its values. <br>
                                              <br>
                                              If you want to replace
                                              just one value (e.g. you
                                              have a values of A, B, C
                                              and you want to make it A,
                                              B, D), you have to do the
                                              following:<br>
                                              - delete C<br>
                                              - add D<br>
                                              <br>
                                              You can (and perhaps,
                                              should) do this in one
                                              operation.<br>
                                              <br>
                                              Hope this helps.<span><font
                                                  color="#888888"><br>
                                                  Pavol</font></span>
                                              <div>
                                                <div><br>
                                                  <br>
                                                  <br>
                                                  On 12. 2. 2015 9:01,
                                                  Dharmendra Parakh
                                                  wrote:<br>
                                                </div>
                                              </div>
                                            </div>
                                            <div>
                                              <div>
                                                <blockquote type="cite">
                                                  <div dir="ltr">HI
                                                    Pavol
                                                    <div><br>
                                                    </div>
                                                    <div>Quick
                                                      Background: </div>
                                                    <div>My role had two
                                                      inducements: </div>
                                                    <div>id=1: Role</div>
                                                    <div>id=2 Resource</div>
                                                    <div>I wanted to
                                                      replace the
                                                      resource
                                                      inducement.</div>
                                                    <div><br>
                                                    </div>
                                                    <div>As per my
                                                      understanding i
                                                      was trying to
                                                      replace the
                                                      inducement with
                                                      id=2. and that
                                                      does not means to
                                                      delete the other
                                                      inducement (like
                                                      id=1).</div>
                                                    <div><br>
                                                    </div>
                                                    <div>If the replace
                                                      does not work how
                                                      can i individually
                                                      add/delete
                                                      attributes/values
                                                      ?</div>
                                                    <div><br>
                                                    </div>
                                                    <div>Thanks</div>
                                                    <div>Dharmendra</div>
                                                    <div><br>
                                                    </div>
                                                  </div>
                                                  <div
                                                    class="gmail_extra"><br>
                                                    <div
                                                      class="gmail_quote">On
                                                      Thu, Feb 12, 2015
                                                      at 1:22 PM, Pavol
                                                      Mederly <span
                                                        dir="ltr"><<a
moz-do-not-send="true" href="mailto:mederly@evolveum.com"
                                                          target="_blank">mederly@evolveum.com</a>></span>
                                                      wrote:<br>
                                                      <blockquote
                                                        class="gmail_quote"
                                                        style="margin:0
                                                        0 0
                                                        .8ex;border-left:1px
                                                        #ccc
                                                        solid;padding-left:1ex">
                                                        <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000">
                                                          <div>Hello
                                                          Dharmendra,<br>
                                                          <br>
                                                          looking at
                                                          your WS
                                                          request: it is
                                                          of REPLACE
                                                          type, see:<br>
                                                          <br>
                                                          <objectDelta
                                                          ... ><br>
                                                          ...        <br>
                                                            
                                                          <t:itemDelta><br>
                                                               
                                                          <t:modificationType><b>replace</b></t:modificationType><br>
                                                                  
                                                          <t:path>c:<b>inducement</b></t:path><br>
                                                                  
                                                          <t:value
                                                          id="2"><br>
                                                                      
                                                          ...<br>
                                                                  
                                                          </t:value><br>
                                                            
                                                          </t:itemDelta><br>
                                                          ...<br>
                                                          <br>
                                                          So, basically
                                                          you tell
                                                          midPoint that
                                                          you want to
                                                          REPLACE the
                                                          values of <b>inducement</b><b>
                                                          </b>item with
                                                          the ones you
                                                          have provided.<br>
                                                          And you've
                                                          provided one
                                                          value with
                                                          id=2 and
                                                          content of
                                                          account
                                                          construction
                                                          on resource
                                                          d0811790-1d80-11e4-86b2-3c970e467874.<br>
                                                          So after the
                                                          operation, the
                                                          original
                                                          inducement
                                                          with id=1
                                                          should be
                                                          gone.<br>
                                                          <br>
                                                          Is this what
                                                          you wanted to
                                                          do? Perhaps
                                                          no.<br>
                                                          <br>
                                                          If you want to
                                                          replace only
                                                          one value in
                                                          multi-valued
                                                          item, you have
                                                          to<br>
                                                          1) delete old
                                                          value<br>
                                                          2) add new
                                                          value<br>
                                                          <br>
                                                          And, I'm not
                                                          quite sure
                                                          about your
                                                          first mail
                                                          (Manish Baid,
                                                          received
                                                          01:14). Aren't
                                                          the contents
                                                          of files
                                                          "original.xml"
                                                          and
                                                          "after_addRoleInducement.xml"
                                                          swapped?
                                                          Because
                                                          original.xml
                                                          corresponds to
                                                          the state with
                                                          only one
                                                          inducement,
                                                          while the file
                                                          "after_addRoleInducement.xml"


                                                          contains two
                                                          inducements.
                                                          Just opposite
                                                          as I would
                                                          expect, given
                                                          the messages
                                                          you wrote.<br>
                                                          <br>
                                                          Best regards,<br>
                                                          Pavol
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          <br>
                                                          On 12. 2. 2015
                                                          8:39,
                                                          Dharmendra
                                                          Parakh wrote:<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <div>
                                                          <div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">Hi

                                                          Ivan 
                                                          <div><br>
                                                          <div>Thanks
                                                          for your
                                                          reply. jira
                                                          you have
                                                          pointed is
                                                          might be
                                                          related to UI
                                                          only and what
                                                          i observed is
                                                          if i use model
                                                          web service to
                                                          modify one
                                                          inducement it
                                                          is deleting
                                                          other
                                                          inducements.</div>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>We are
                                                          using the
                                                          master branch
                                                          so latest
                                                          midpoint
                                                          version.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Regards</div>
                                                          <div>Dharmendra</div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On


                                                          Thu, Feb 12,
                                                          2015 at 1:01
                                                          PM, Ivan Noris
                                                          <span
                                                          dir="ltr"><<a
moz-do-not-send="true" href="mailto:ivan.noris@evolveum.com"
                                                          target="_blank">ivan.noris@evolveum.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000">
                                                          Hi,<br>
                                                          <br>
                                                          I believe this
                                                          is the issue:
                                                          <a
                                                          moz-do-not-send="true"
href="https://jira.evolveum.com/browse/MID-2113" target="_blank">https://jira.evolveum.com/browse/MID-2113</a>
                                                          and it should
                                                          be fixed, but
                                                          please see the
                                                          comment in
                                                          JIRA.<br>
                                                          <br>
                                                          Also, what
                                                          version of
                                                          midPoint are
                                                          you using?<br>
                                                          <br>
                                                          Thanks,<br>
                                                          regards<br>
                                                          Ivan
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          <div>On
                                                          02/12/2015
                                                          08:08 AM,
                                                          Dharmendra
                                                          Parakh wrote:<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div>
                                                          <div>
                                                          <div dir="ltr">Hi



                                                          Radovan
                                                          <div><br>
                                                          </div>
                                                          <div>Additional



                                                          Information:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>We have a
                                                          requirement to
                                                          update the
                                                          role
                                                          inducement
                                                          from web
                                                          service
                                                          client, where
                                                          we have to
                                                          add/delete
                                                          some resource
                                                          attributes.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>In our
                                                          scenario we
                                                          have a role
                                                          with multiple
                                                          inducements
                                                          (let say one
                                                          role and one
                                                          resource
                                                          inducement).
                                                          Now i want to
                                                          add some
                                                          additional
                                                          attribute-values
                                                          in resource
                                                          inducement. To
                                                          do this we
                                                          calculate the
                                                          correct
                                                          inducement
                                                          (AssignmentType)
                                                          object with
                                                          all current
                                                          attributes and
                                                          try to replace
                                                          this
                                                          inducement. </div>
                                                          <div>Earlier
                                                          this was
                                                          working for us
                                                          but now when
                                                          we do this
                                                          other
                                                          inducement
                                                          information is
                                                          lost (induced
                                                          role is no
                                                          longer
                                                          available in
                                                          role).</div>
                                                          <div><br>
                                                          </div>
                                                          <div>I am
                                                          attaching the
                                                          request xml
                                                          with the
                                                          mail...</div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Regards</div>
                                                          <div>Dharmendra</div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On



                                                          Thu, Feb 12,
                                                          2015 at 12:03
                                                          PM, Manish
                                                          Baid <span
                                                          dir="ltr"><<a
moz-do-not-send="true" href="mailto:baid_manish@yahoo.com"
                                                          target="_blank">baid_manish@yahoo.com</a>></span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div>
                                                          <div
                                                          style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica
                                                          Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div>Hi
                                                          Radovan,</div>
                                                          <div dir="ltr">We



                                                          are showing a
                                                          demo to our
                                                          clients, looks
                                                          like with
                                                          recent 3.1
                                                          release,
                                                          inducement
                                                          update is
                                                          behaving
                                                          differently.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">If



                                                          you can work
                                                          with
                                                          Dharmendra to
                                                          work through
                                                          this (he is in
                                                          India
                                                          timezone, will
                                                          be available
                                                          in your
                                                          mornings), it
                                                          would be of
                                                          great help.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Thanks<br>
                                                          </div>
                                                          <div>
                                                          <div>
                                                          <div><span></span></div>
                                                          <br>
                                                          <div
                                                          style="font-family:HelveticaNeue,Helvetica
                                                          Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div
                                                          style="font-family:HelveticaNeue,Helvetica
                                                          Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:16px">
                                                          <div dir="ltr">
                                                          -----
                                                          Forwarded
                                                          Message -----<br>
                                                          <font
                                                          face="Arial">
                                                          <b><span
                                                          style="font-weight:bold">From:</span></b>
                                                          Manish Baid
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:baid_manish@yahoo.com" target="_blank">baid_manish@yahoo.com</a>><br>
                                                          <b><span
                                                          style="font-weight:bold">To:</span></b>
                                                          midPoint
                                                          General
                                                          Discussion
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>>






                                                          <br>
                                                          <b><span
                                                          style="font-weight:bold">Cc:</span></b>
                                                          Dharmendra
                                                          Parakh <<a
moz-do-not-send="true" href="mailto:dharmendra@confluxsys.com"
                                                          target="_blank">dharmendra@confluxsys.com</a>>;






                                                          Indrajit
                                                          Chauhan <<a
moz-do-not-send="true" href="mailto:indrajit@confluxsys.com"
                                                          target="_blank">indrajit@confluxsys.com</a>>






                                                          <br>
                                                          <b><span
                                                          style="font-weight:bold">Sent:</span></b>
                                                          Wednesday,
                                                          February 11,
                                                          2015 4:14 PM<br>
                                                          <b><span
                                                          style="font-weight:bold">Subject:</span></b>
                                                          URGENT ...
                                                          Role
                                                          inducements
                                                          lost on role
                                                          updates<br>
                                                          </font> </div>
                                                          <div><br>
                                                          <div>
                                                          <div>
                                                          <div
                                                          style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica
                                                          Neue,Helvetica,Arial,Lucida
Grande,sans-serif;font-size:14px">
                                                          <div dir="ltr">Hi,</div>
                                                          <div dir="ltr">With




                                                          3.1 release
                                                          code (and also
                                                          after
                                                          MID-2194),
                                                          when
                                                          inducement/s
                                                          is/are updated
                                                          in a role,
                                                          other related
                                                          indcuments are
                                                          removed.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Here




                                                          is an example:</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">*
                                                          Role had an
                                                          indcument:
                                                          "LDAP Account"
                                                          with 3 group
                                                          memberships</div>
                                                          <div dir="ltr">*
                                                          Role is
                                                          modified to
                                                          add a role
                                                          inducement
                                                          (role
                                                          hierarchy) </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Observation:





                                                          3 group
                                                          memberships
                                                          that were part
                                                          of "Ldap
                                                          Account"
                                                          inducments are
                                                          removed. <br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Please




                                                          see object
                                                          XMLs of before
                                                          and after.</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">Thanks<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><span><font color="#888888">
</font></span></pre>
                                                          <span><font
                                                          color="#888888">
                                                          </font></span></blockquote>
                                                          <span><font
                                                          color="#888888">
                                                          <br>
                                                          <pre cols="72">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  <a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>     <a moz-do-not-send="true" href="http://evolveum.com/blog/" target="_blank">evolveum.com/blog/</a>
  _____________________________________________
  "Semper Id(e)M Vix."
</pre>
                                                          </font></span></div>
                                                          <br>
_______________________________________________<br>
                                                          midPoint
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                                          target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                                                          <br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                        <br>
_______________________________________________<br>
                                                        midPoint mailing
                                                        list<br>
                                                        <a
                                                          moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
                                                        <a
                                                          moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                                          target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                                                        <br>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
                                                  <br>
                                                  <fieldset></fieldset>
                                                  <br>
                                                  <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                                                </blockquote>
                                                <br>
                                              </div>
                                            </div>
                                          </div>
                                          <br>
_______________________________________________<br>
                                          midPoint mailing list<br>
                                          <a moz-do-not-send="true"
                                            href="mailto:midPoint@lists.evolveum.com"
                                            target="_blank">midPoint@lists.evolveum.com</a><br>
                                          <a moz-do-not-send="true"
                                            href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                            target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                                          <br>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                    <br>
                                    <fieldset></fieldset>
                                    <br>
                                    <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                                  </blockquote>
                                  <br>
                                </div>
                              </div>
                            </div>
                            <br>
_______________________________________________<br>
                            midPoint mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:midPoint@lists.evolveum.com"
                              target="_blank">midPoint@lists.evolveum.com</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                              target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                    </blockquote>
                    <br>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            midPoint mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
              target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>