How to get user group in PKCE authentication

Hi team,

I am using OKTA PKCE to authenticate the web site. I am trying to retrieve the user’s group thru API call but could not find examples for PKCE flow. Please let me know where I can found the API endpoint, request and response sample data for getting user’s group.

Thanks,
Alok…

I think those 2 things are not related, the API call to get all groups a user is a member of is described here - https://developer.okta.com/docs/reference/api/users/#get-user-s-groups. But with OIDC you can create groups claim and include it into your id/access token. That will save you from explicitly going back to server and request that information.