<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007fUXkwCAGOkta Classic EngineIntegrationsAnswered2022-05-23T21:50:27.000Z2022-05-19T15:59:36.000Z2022-05-23T21:50:27.000Z

EdwardC.73916 (Customer) asked a question.

hasAnyGroups angular directive doesn't return assigned groups

Hi,

I assigned two groups to my application, Read-Only and Read-Write. I am trying to use the hasAnyGroups directive to check which group my user is in an angular app that I wrote. I placed a debug point in the hasAnyGroups(groups) function in okta-angular.js and neither if (idToken.claims[key]) nor const userInfo = yield this.oktaAuth.getUser(); contain any groups. I tried one user who is part of one group and another who is part of another.

 

I using a dev instance of okta if that helps.


This question is closed.
Loading
hasAnyGroups angular directive doesn't return assigned groups
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply