<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

Search for Users with a Custom User Type

Lifecycle Management
Administration
Okta Classic Engine
Okta Identity Engine

Overview

This article presents how to search for custom-type users in Okta Admin UI or via API. 

Applies To

  • Okta Admin User Interface (UI)
  • Custom User Type

Solution

Okta Admin UI

  1. In the Okta Admin UI, navigate to Directory > People.
  2. Click Advanced Search, then click the X icon next to All user types
  3. Choose the desired custom user type, then click Search. This will show all users of that user type.
Advanced Search
 

Okta Users API

  1. Configure the Okta REST API client for the org. See the documents below for guidance:
  2. If using the recommended OAuth 2.0 and OIDC access tokens method, ensure the appropriate OAuth 2.0 scope is applied for each call.
  3. Make a GET call to List all user types with the okta.userTypes.read scope and inspect the response to confirm the target type ID.
    • https://{OktaDomain}/api/v1/meta/types/user
  4. Make a GET List All Users API call with the okta.users.read scope and include the type ID in the Search along with any other parameters or search criteria to refine the results. This could look similar to the following:
    • https://{OktaDomain}/api/v1/users?limit=200&search=type.id+eq+%22{userTypeId}%22

Related References

Loading
Okta Support - Search for Users with a Custom User Type