# Retrieving users in the organization with Okta API

**URL:** <https://devforum.okta.com/t/retrieving-users-in-the-organization-with-okta-api/21912>\
**Category:** OAuth/OIDC\
**Created:** [September 18, 2022, 10:02am UTC](https://devforum.okta.com/t/retrieving-users-in-the-organization-with-okta-api/21912 "2022-09-18T10:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elanzini](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@elanzini](https://devforum.okta.com/u/elanzini)\
**Post date:** [September 18, 2022, 10:02am UTC](https://devforum.okta.com/t/retrieving-users-in-the-organization-with-okta-api/21912/1 "2022-09-18T10:02:12Z")

</div>

I built a Desktop application and I use Firebase to allow people to signup with Google or Microsoft and most importantly get an access\_token that allows the client to retrieve the contacts in their organization (using Google Contacts API and Microsoft Graph API). Last week I was setting things up with a new user. She works remotely for a startup and uses Okta to access services.

When we tried to signup with Google, it just didn’t recognize the email, so that doesn’t look like it’s a viable solution. I was wondering:

1. Does Okta offer an oauth2.0 workflow to authenticate the user?
2. If yes, with the acess\_token that is returned, is there an API to retrieve the users in the same organisation?

If not, how should I go around it to authenticate with Google?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [September 20, 2022, 10:20pm UTC](https://devforum.okta.com/t/retrieving-users-in-the-organization-with-okta-api/21912/2 "2022-09-20T22:20:54Z")

</div>

Okta does support OAuth/OIDC, but the user would need to set-up an OIDC application within their Okta Org and provide you with the client details (endpoints, id/secret, etc).

However, Okta does not have a similar endpoint. While admins would be able to access this sort of information (to [list/search all users in the Okta org](https://developer.okta.com/docs/reference/api/users/)), end-users would not be able to do so, so this will depend on the user in question.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 10:04pm UTC](https://devforum.okta.com/t/retrieving-users-in-the-organization-with-okta-api/21912/3 "2024-02-12T22:04:19Z")

</div>

Closed on February 12, 2024, 10:04pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
