Shinyproxy + keycloak : UserId UUID

Hi,

I’m wondring how to can get the user UUID from Keycloak ?

I tried this, but it returns the email and not the userId uuid :

#{@userService.currentUserId}

#{proxy.userId}

Thank you
Ada

Hi

You should be able to use:

#{keycloakUser.keycloakSecurityContext.token.subject}

You can find more information in our documentation: https://shinyproxy.io/documentation/spel/#keycloak

2 Likes

Thank you @tdekoninck
It works for me.

1 Like