[keycloak-user] How to get UserRepresentation by subject id

Stian Thorgersen stian at redhat.com
Mon Feb 2 03:18:57 EST 2015


It should be by-id, but currently it's only available by-username. Please create a jira and we'll fix it.


----- Original Message -----
> From: "Dean Peterson" <peterson.dean at gmail.com>
> To: keycloak-user at lists.jboss.org
> Sent: Sunday, 1 February, 2015 5:00:28 AM
> Subject: [keycloak-user] How to get UserRepresentation by subject id
> 
> I remember reading that the correct way to uniquely identify a keycloak user
> is by the subject id. That is what I associate with objects in my
> application. I need to get a UserRepresentation using the admin client by
> that subject id. However, the only option allowed is to use username. Ex.
> realm.users().get("username"). I need realm.users().get("subjectid"). Is
> there a way to get UserRepresentation by subject?
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list