<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
0D51Y0000ABSz1ESQTOkta Identity EngineAdvanced Server AccessAnswered2023-08-01T19:30:20.000Z2020-12-30T15:01:52.000Z2021-01-04T20:26:49.000Z

JacobD.07175 (Customer) asked a question.

Retrieve claim of all groups, including imported active directory groups, in Vue app using okta-vue library

I am trying to retrieve claim of all groups, including imported active directory groups, in Vue app using okta-vue library.

 

I have set my only auth server with the following claim:

name: allGroups

Value: "groups: starts with .*"

Scopes: Any

Type: id

Included: Always

 

In the app, this.$auth.getUser() returns user, name, email, etc... But no group information is returned.

 

I have also tried adjust the app Open ID token settings as shown in the image and expression below. This also did not return any group information.

 

I don't think it is as important to get AD groups as I think I could just create an Okta group and group rules to bring in all users of the imported AD group. But it would be ideal to have that directly.

 

/help/servlet/rtaImage?refid=0EM1Y000001LqLv

Arrays.isEmpty(Arrays.toCsvString(Groups.startsWith("active_directory","",50))) ? Groups.startsWith("OKTA","",50) : Arrays.flatten(Groups.startsWith("OKTA","",50),Groups.startsWith("active_directory","",50))


  • JacobD.07175 (Customer)

    Thank you @tim.lopez1.5480328098306519E12 (Okta, Inc.)​ . I actually ended up speaking with support. They provided the following expression which works well:

     

    Arrays.isEmpty(Groups.startsWith("active_directory","",100)) ? Groups.startsWith("OKTA","",100) : Arrays.flatten(Groups.startsWith("OKTA","",100),Groups.startsWith("active_directory","",100))

     

    I returned the app claim settings to default settings. This worked under ID Token with any scope selected on edit claim.

    Expand Post
This question is closed.
Loading
Retrieve claim of all groups, including imported active directory groups, in Vue app using okta-vue library