<div dir="ltr"><div><div>Hello, OVirt community!<br><br></div>I have some problems in understanding with OVirt (v 3.6.0) API.<br></div>I'm trying to create user with <span class="gmail-short_text" id="gmail-result_box" lang="en"><span class="gmail-alt-edited">specifying his roles, by using such signature in POST call:<br><br></span></span><span class="gmail-short_text" id="gmail-result_box" lang="en"><span class="gmail-alt-edited"></span></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><user><br></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div> <user_name>testuser@saml-auth</user_name></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> <roles></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> <role id="some_role_id1"/></div></blockquote><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <role id="some_role_id2"/><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <role id="some_role_id3"/> <br></blockquote></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> </roles> <br></div></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div></user> <br></div></blockquote><div><br></div><div>The user is created but without the roles.<br></div><div>The next issues, that I encountered <span class="gmail-short_text" id="gmail-result_box" lang="en"><span class="gmail-">is associated with updating of existing user (adding the roles to him). I am trying to do PUT call on .../ovirt-engine/api/users/long_user_id/roles :<br><br></span></span><span class="gmail-short_text" id="gmail-result_box" lang="en"><span class="gmail-"></span></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><role id="some_role_id1"/></blockquote><div><br></div><div>But this doesn't work.<br></div><div>Please, give we insight in what I am doing wrong.<br><br><br><font color="black" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;background-color:white" dir="ltr">
<div style="margin-top:0px;margin-bottom:0px"><font face="Calibri,Arial,Helvetica,sans-serif" size="1">-------------<br>
</font></div><font size="1">
</font><div style="margin-top:0px;margin-bottom:0px"><font size="1"><span style="font-family:tahoma,sans-serif"><span lang="en-US">Sincerely</span>,</span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">
</span></font><div style="margin-top:0px;margin-bottom:0px"><font size="1"><span style="font-family:tahoma,sans-serif">Konstantin Klymuk.</span></font></div>
</span></font><br><br> <br></div> </div></div>