Hi, I am trying to get user’s groups in my Angular application. With @okta/okta-angular I am able to get profile information of the user like so:
this.oktaAuth.getUser().then((user) => {
console.log(user); // contains profile information
});
I cannot get user’s groups even if I add scopes to the okta sign in widget.
I am able to get groups in Spring Boot application (it is an SPA).
Any ideas how to get groups on the client (Angular) side?