<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

Obtain a List of Users Assigned Individually or Through a Group to an Okta Application via API

Lifecycle Management
Okta Classic Engine
Okta Identity Engine

Overview

Administrators often need to obtain a list of users assigned to an application individually or through a group. Retrieve this list by making an Okta REST API call and filtering the results by assignment scope.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Okta REST API
  • Application Assignment
  • Reporting

Solution

What are the steps to obtain a list of users assigned to an application via the Okta REST API?

Retrieve a list of users assigned to an application by importing the Apps API collection into Postman, executing the list users call, and converting the resulting JSON file to a CSV file to filter by assignment scope as detailed in either the video demonstration or the written instructions.

 

 

  1. Set up a Postman environment by following the instructions in Set up an environment.
  2. Select the Run in Postman button in the Application Operations documentation to import the Apps API collection.
  3. Run a List users assigned to an application call from the left pane of Postman by navigating to Apps > List Users Assignment to App.
    GET /api/v1/apps/${applicationId}/users
  1. Select Send and Download, and save the output locally as a JSON file.
  2. Use a third-party tool to convert the JSON file to a CSV file.
  3. Filter by the scope column within the CSV file.
    • For users individually assigned to an application, the scope is USER.
    • For users assigned to an application via a group, the scope is GROUP.

 

Related References

Loading
Obtain a List of Users Assigned Individually or Through a Group to an Okta Application via API | Okta Support