<div dir="ltr">Hi<div><br></div><div>Hope you all had a nice Christmas, I wish you all a very Happy new year 2015 ahead.</div><div><br></div><div>I have a requirement where i have to provision account/resource to a role/user in midpoint using model web service. I was able to create and search account using web service client (model-client-sample)</div><div><br></div><div>- I need some pointers on how to update the account. I tried few things some didn't work and some worked partially. can you help me providing the right way or a code snippet to do it.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>I have attached a code snippet which replaces the role assignment and it works if i remove the attribute itself from construction but when i try to remove some values of a multi-valued attribute instead of removing those values it tries to add other value which are already present</div></blockquote><div><br></div><div>- One more thing there is a method in web service to get the owner of shadow account but that can be a user only, how we can get the owner of a shadow if that owner is a role.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>following is the method:</div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><b>findShadowOwner(shadowOid, user, result);</b></div></blockquote></blockquote><div><br></div><div><br></div><div>Thanks & regards</div><div>Dharmendra</div></div>