Retrieving Group information Skip to main content
https://support.okta.com/help/answers?id=9062a000000bm6gqaa&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
William WhiteWilliam White 

Retrieving Group information

We are an existing customer (account under HCC insurance or Tokio Marine HCC) and had a question regarding implementing OKTA widgets.  I’ve signed up for the OKA Developers Account and was able to successfully login and retrieve 2 objects, res.user.profile.login and res.user as shown in the sample code from your site.  How do I retrieve the Group information?  I’ve gone ahead and assigned users to groups, but the res object does not return the group details.
 
Sohaib AjmalSohaib Ajmal (Okta, Inc.)
Hi William,

You can do it using the Open ID in your sign in widget. For example you can see this link how to use Open ID Connect in sign in widget. http://developer.okta.com/code/javascript/okta_sign-in_widget_ref.html#example-openid-connect-configuration. Once you configure this in the response object you would get claims that will have be groups. res.claims.groups. Before you do that in Open ID application, you would need to enable passing groups. Please see this link for passing groups () https://support.okta.com/help/articles/Knowledge_Article/Using-OpenID-Connect?_ga=1.150840753.668698286.1476990087.

If you need detailed assistance with this can you please create support ticket with us. Or send an email to developers@okta.com.

Thanks,
Sohaib