Auth0\SDK\API\Management
class, which houses the methods you can use to access the Management API and perform operations on your Auth0 tenant. Using this interface, you can easily:
- Search for and create users
- Create and update Applications
- Retrieve log entries
- Manage rules
- For temporary access or testing, you can manually generate an API token and save it in your
.env
file. - For extended access, you must create and execute and Client Credentials grant when access is required. This process is detailed on the Authentication API page.
- Go to APIs > Auth0 Management API > Machine to Machine Applications tab.
- Find your Application and authorize it.
- Click the arrow to expand the row and select the scopes required.
Management
class stores access to endpoints as factory methods of its instances, for example $management->users()
returns an instance of Auth0\SDK\API\Management\Users
that you can use to interact with the /users Management API endpoints.