Get Users Who Granted a Specific Application via Management API in Auth0

Overview

This article outlines the procedure to retrieve a list of users who granted a specific application using the Management API.

Applies To
  • Auth0
  • Management API
  • Application Programming Interface (API)
  • Authorized Applications
  • Users
  • Grant/Consent
Solution

Follow the steps below to retrieve the list:

  1. Query the Get grants endpoint.
  2. Include the client_id parameter for the target application.
  3. Retrieve the user_id values from the JSON response.
    • The response format appears as follows:
      [
        {
          "user_id": "auth0|abc...",
          "audience": "...",
          "scope": [...],
          "clientID": "...",
          "id": "..."
        },
        ...
      ]

 

For the details about User Grants, see the User Consent and Third-Party Applications documentation.

Recommended content

No recommended content found...