
NaveenP.18104 (Customer) asked a question.
I integrated LDAP with Okta with user. For basic testing I imported one user, and the groups got imported as well. I was able to see the user in its groups. But when I ran Preview token I didnt see any groups in that. I checked claims and that was fine because an okta created user was getting its groups listed in preview token. The issue is only with LDAP imported user.

Hey Naveen - it is likely you will need to create a custom claim with the groups tied to it. I don't believe a users groups and included in the ID token by default. You will need to tie the custom claim to a scope, then make sure you are requested that scope in your /authorize call and in preview token.
Hope that helps!
Hi Naveen,
The expressions here may help you. For LDAP groups, the group claim statements are little different. You need to build expressions accordingly to get the group claims of LDAP.
https://support.okta.com/help/s/article/Can-we-retrieve-both-Active-Directory-and-Okta-groups-in-OpenID-Connect-claims?language=en_US
You have to build the group claim yourself and use an expression. Rohit shared the link that should lay it out