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
.envfile. - 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.
ManagementClient exposes endpoints as properties (for example, $management->users and $management->clients). Results are returned as typed objects — you retrieve values by calling named methods (such as getEmail() or getName()) rather than unpacking a raw array.