
RayL.08683 (Customer) asked a question.
I implement okta login in my web app.
When okta redirect to my app, I send another request to oauth2/v1/token to exchange token.
Then I take the access_token from the response
And use the access_token to call api/v1/users/{userId}/groups
However, I got 403 forbidden
I have go throw my okta application setting and didn't see any setting related with it.

I have added scope=openid+profile+email+groups in the token exchange api but the response still shows scp: [ 'openid', 'email' ],
Hello @RayL.08683 (Customer) Thank you for reacting out to our Community!
Please see this documentation below that should provide the information you are looking for:
https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Community members help others by clicking Like or Select as Best on responses. Try it today.