Groups Claim returns wrong data in getUser()

Hi ! I have an OIDC app connected to a Vue.Js app. I am trying to retrieve the group name and the roles of the current user with getUser() function.

Here is my okta config :
issuer: ‘’,
client_id: ‘0oa3x7nt6x8f1JCS5417’,
redirect_uri: window.location.origin,
scopes: [‘groups’]

My problem is that , with this config, getUser() returns : {sub: ‘00u3q1ho5nOjGWUVa417’} and I have no clue what is this ID. Could you explain me how can I retrieve the role of the user with such a configuration ? Much appreciated

sub will be the user id.

Have you setup the authorization server (default) to return the group claims?
Customize tokens returned from Okta with a Groups claim | Okta Developer

1 Like