How To Get Role By Role Name
Sep 10, 2025
Overview
When trying to get the role by name via /api/v2/roles with a name filter as a query parameter, it gives all the records with the filter in their names. This article explains whether it Is possible to return only that exact role.
Applies To
- Roles
Solution
Currently, there is no API endpoint to return the role with the exact name. To suggest this functionality in a future release of Auth0, please submit a feature request using the Product Feedback form.