<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Rohit,</p>
    <p>this should be pretty straightforward. Please see</p>
    <ul>
      <li><a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Assignment+Configuration#AssignmentConfiguration-ConstructionVariables">https://wiki.evolveum.com/display/midPoint/Assignment+Configuration#AssignmentConfiguration-ConstructionVariables</a></li>
      <li><a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Assignment+Path+Variables+Example">https://wiki.evolveum.com/display/midPoint/Assignment+Path+Variables+Example</a></li>
    </ul>
    <p>So, <tt>source</tt> variable should point to the role that
      contains the resource inducement.<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 28.06.2017 14:45, Rohit Patil wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC2uZLw=c-y3boKPNUyRomxDAW9Scry8QO353eqDDxBLgrRDng@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Hello!<br>
                        <br>
                      </div>
                      Can you please help me in achieving the following
                      schenario...<br>
                    </div>
                    say I have Resource (Database Table) having 2
                    columns name and role.<br>
                    <br>
                  </div>
                  I have 5 roles R1 to R5 and in each role i have
                  induced my Resource.<br>
                  <br>
                </div>
                now when i assign any role to any user I can use user
                property in outbound mapping so it can be inserted in
                database table.<br>
                <br>
              </div>
              but I want something extra here.<br>
              <br>
            </div>
            I want name of user to be stored in database table column
            name, but I want role column to be populated by the name of
            Role.<br>
            <br>
          </div>
          Like if I assign role R1 to user rohit, so entry in database
          table will be name = rohit, role = R1.<br>
          <br>
        </div>
        whereas If I assign role R2 to user rohit, then entry in
        database will be name = rohit, role = R2.<br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div><br>
                          </div>
                          <div>Thanks in advance.<br>
                          </div>
                          <div><br>
                            <br>
                            -- <br>
                            <div class="gmail_signature"
                              data-smartmail="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div>Regards<br>
                                  </div>
                                  Rohit Patil<br>
                                </div>
                                +91 8806000443<br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </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>