<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"HP Simplified";
        panose-1:2 11 6 4 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"HP Simplified","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.nf
        {mso-style-name:nf;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"HP Simplified","sans-serif"">Hi!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"HP Simplified","sans-serif"">I just want to make sure of one thing.<o:p></o:p></span></p>
<pre><span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif"">The created/deleted_by has the information of the user performing the action and user role, your examples were always a dict like </span>{“user-id”: “user-id”, “role”:”role-id”}<span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif"">. But I was looking at the identity api method</span><span style="font-family:"HP Simplified","sans-serif""> </span>get_roles_for_user_and_domain <span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif"">and it returns a list of roles for a given user in a given domain. So our dict looks something like <o:p></o:p></span></pre>
<pre>{“user-id”:”uuid-value”, “roles-id”:[“uuid-value”,”uuid-value”]}<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif"">For the parent data, I have to inform the domain admin of a given domain, but a domain can have more than one admin and your examples were always a dict like</span> {“user-id”:”uuid-value”, “role”:”uuid-value}<span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif""> and a user may have many roles. So parent-data may be a dict of dicts: <o:p></o:p></span></pre>
<pre>{“user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}, “user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}}<o:p></o:p></pre>
<pre><span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif""><o:p> </o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"HP Simplified","sans-serif"">So, how this look for you?<o:p></o:p></span></pre>
<p class="MsoNormal"><span style="font-family:"HP Simplified","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"HP Simplified","sans-serif"">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-family:"HP Simplified","sans-serif";color:black">Tiago Martins<br>
</span></b><span style="font-family:"HP Simplified","sans-serif";color:#717172">Software Engineer<br>
BR R&D<br>
<br>
<a href="mailto:tiago.martins@hp.com"><span style="color:#717172;text-decoration:none">tiago.martins@hp.com</span></a><br>
T +55 51 3205 7673<br>
Hewlett-Packard Company<br>
6681 Ipiranga Ave. Bld 95 - 6th floor<br>
Porto Alegre, RS, 90619-900<br>
Brazil<br>
<br>
<img border="0" width="36" height="36" id="Picture_x0020_1" src="cid:image003.png@01CE7CAB.3898E880" alt="HP_Blue_RGB_150_MN"><br>
<br>
Please print thoughtfully</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>