<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p>I want to give end users access to list users inside their organization. For that purpose I created a simple role with following authorizations:<br>
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">   <authorization id="1"></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <name>GUI authorizations</name></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-ui-3#users</action></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-ui-3#userDetails</action></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">   </authorization></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">   <authorization id="2"></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <name>users-read</name></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <description></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">            Allow to read basic user properties to be able to display requestor details in the</span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">            approval forms.</span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">        </description></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <object></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">         <type>UserType</type></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">         <filter></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">            <q:equal></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">               <q:path>organization</q:path></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">               <q:value>70001000</q:value></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">            </q:equal></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">         </filter></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      </object></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>name</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>givenName</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>familyName</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>fullName</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>employeeType</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">      <c:item>emailAddress</c:item></span></span><br style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);">
<span style="font-family: Consolas,monospace; font-size: 10pt; color: rgb(0, 111, 201);"><span style="color: rgb(0, 111, 201);">   </authorization></span></span><br>
<br>
When assigning this role to user there appears menu item "Users" and under that command "List users". But when I click on that then the long list of errors appears in log - one error for each user who's data the current user cannot access:<br>
<br>
<span style="color: rgb(255, 0, 0);">2016-09-27 16:52:16,227 [] [http-nio-8084-exec-3] ERROR (com.evolveum.midpoint.model.impl.controller.SchemaTransformer): Error post-processing object user:c0466a98-f249-45ac-8cfa-07dd85edf05d(null): Access denied</span><br>
<br>
And the listing shows "null (FATAL_ERROR)" for each inaccessible user. Is there a way how to avoid this kind of errors?<br>
</p>
<p><br>
</p>
<p>Regards,</p>
<p>Aivo Kuhlberg<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"></div>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for official use.</font>
</body>
</html>