How To Get Role By Role Name

Problem statement

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. Is it possible to return only that exact role?

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 our Product Feedback form.