<div dir="ltr">OK, agreed. We thought this out of consistency, but if that&#39;s not a good design we surely can consider a better one.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 9:44 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Thiago Presa&quot; &lt;<a href="mailto:thiago.addevico@gmail.com">thiago.addevico@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:stian@redhat.com">stian@redhat.com</a><br>
&gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Tuesday, 24 March, 2015 1:41:16 PM<br>
&gt; Subject: Re: [keycloak-user] Application Management<br>
&gt;<br>
</span><span class="">&gt; Hi there,<br>
&gt;<br>
&gt; I&#39;m Alex&#39;s coworker and I&#39;ll be working on this too.<br>
&gt;<br>
&gt; We were just discussing your idea, and it seems to fit our requirements.<br>
&gt;<br>
&gt; As far as we have seen, keycloak already has a realm-admin concept.<br>
&gt; Whenever a realm &quot;R&quot; is created, it creates a R-realm application with<br>
&gt; a bunch of default roles (manage-users, manage-roles, etc.) into the<br>
&gt; realm master.<br>
&gt;<br>
&gt; We are currently thinking if we could mimic this structure for<br>
&gt; applications. What do you think?<br>
<br>
</span>It&#39;s already messy with the way I modelled it and adding the same for applications would be even worse. I don&#39;t see why that&#39;s needed though if we&#39;d add what I proposed.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; &gt; I had an idea a while back that is a simple way to achieve what you&#39;re<br>
&gt; &gt; asking for. Th&gt; e idea would be to only allow an admin to grant roles that<br>
&gt; &gt; the admin has access to.<br>
&gt;<br>
&gt; &gt; Basically:&gt; * A user with admin (super user) role can grant any roles (we<br>
&gt; &gt; would need to add a per-&gt; realm super user role)<br>
&gt;<br>
&gt; &gt; * A user with the role manage-users and some roles on app1 can only grant<br>
&gt; &gt; other users &gt; the roles on app1<br>
&gt;<br>
&gt; &gt; * A user with the role manage-users and some roles on app2 can only grant<br>
&gt; &gt; other users &gt; the roles on app2<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; This is something we should add in either case (to prevent users granting<br>
&gt; themselves more access). Would it solve your problems?<br>
&gt;<br>
</div></div></blockquote></div><br></div>