[keycloak-dev] Question: Loading list of role members via hibernate

Andrew Zenk azenk at umn.edu
Fri Jun 5 12:32:02 EDT 2015


I am working on providing a read only ldap interface to the keycloak
database via a custom partition for apache directory server .  In order to
properly populate part of the tree, I will need to be able to pull a list
of role members from the database.

At present I'm using the keycloak/hibernate libraries to access our mysql
database directly.  This seems to work well for most things.  Though, I
can't seem to find a way to get from a role id to a list of the roles
members.  Based on poking around in the code, it seems like there's an easy
way to get the roles that a given user is a member of, but not the
reverse.  Is there a path that I'm missing?  If not, I'd be happy to take a
stab at implementing it myself.  I'm relatively new to hibernate though so
it would likely take me a while to get it right.

I'd also be open to accessing the keycloak database using a different
interface.  This just seemed like the best choice for my use case.

-- 
Andrew Zenk, EIT
Polar Geospatial Center
University of Minnesota
Office: (612) 625-0872
Cell: (612) 414-9617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150605/b69c365a/attachment.html 


More information about the keycloak-dev mailing list