<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>
<blockquote type="cite">If the replace does not work how can i
individually add/delete attributes/values ?</blockquote>
<br>
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.<br>
Pavol<br>
<br>
<br>
On 12. 2. 2015 9:01, Dharmendra Parakh wrote:<br>
</div>
<blockquote
cite="mid:CAJG9dDvG7Za7KZRN477gJANkbjUL1H3XS52iWM0C7o6cUWZiPA@mail.gmail.com"
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 class="h5"><br>
<br>
<br>
On 12. 2. 2015 8:39, Dharmendra Parakh wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<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">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>