- Create new tenants
- Invite and manage members of your Team
- Review Team activity
Before you begin
Before you enable the Auth0 Teams API, you must:
- Create an Auth0 account with an Enterprise plan.
- Assign a Team Owner to onboard members via the Teams API.
- Enable Tenant Member Management.
For Private Cloud customers: Tenant Member Management is currently in Beta for Private Cloud deployments. By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. Contact Auth0 Support to participate in the program. To learn more about Beta programs, read Product Release Stages.
How it works
The Teams API uses the OAuth 2.0 Client Credentials flow to provide secure, scoped access to the API. Use the Teams Dashboard to create and configure a new Production tenant to use with the Teams API. This is your Auth Tenant and should populate in your Teams Tenant menu. Authentication is handled through a dedicated authorization server you configure one time. This server:- Issues a Client ID and Secret for your application
- Provides a token endpoint to mint access tokens
- Allows you to customize access scopes to match your required permissions
Audience
To get the audience for the Teams API, you need to create the Auth Tenant. The configuration you provide determines the audience. Once you complete steps in Create Auth Tenant, create the Teams API audience.Scopes
The Teams API supports the following scopes from Auth0 Management API:| Scope | Description |
|---|---|
read:tenants | Allows Teams admins to view available tenants |
create:tenants | Allows Teams admins to create new tenants |
delete:tenants | Allows Teams admins to delete existing tenants |
read:members | Allow Teams admin to view existing Teams/Tenant members |
create:members | Allow Teams admin to create new Teams/Tenant members |
delete:members | Allow Teams admin to remove existing Teams/Tenant members. |
update:members | Allow Teams admin to update existing Teams/Tenant members. |
create:invitations | Allows Teams admin to create new Teams/Tenant invitations. |
read:team_activity | Allows Teams admin to view Teams activity. |
Activate the Teams API
To activate the Teams API, you need to create an Auth Tenant in the Teams Dashboard to handle authentication. The Auth Tenant hosts the application that provides your Client ID and Secret and serves as the home for all token exchange activity.The Auth Tenant is created only once. You must create an Auth Tenant to host the application that manages your Client ID and Client Secret. This tenant serves as the central hub for all token exchange operations.
Create the Auth Tenant
- Navigate to Auth0 Dashboard > Teams.
- In the Team’s Dashboard, select Settings.
- Select Teams API.
- Create Auth Tenant:
-
If you have not created an authentication tenant, select Create Auth Tenant:
![][image1]
- For Create Under, select Private or Public.
Private: Use Private if your tenant is located in the private cloud. Public: Use Public if your tenant is located in the public cloud. To learn more about Auth0’s cloud environments, read Deployment Options.
- Add your tenant name to the Tenant Domain in the format of your tenant name and region. For example:
[my-teams-tenant.us](http://my-teams-tenant.us). - Select Create Tenant.
- Add a name for your new Auth Tenant and select the necessary scopes.
- Select Create Client. ![][image2]
- Review the API configuration details to initiate requests to the Teams API. You need to use the Client ID and Client Secret in the request header: ![][image3]
- For Create Under, select Private or Public.
-
If you’ve already created the Auth Tenant, select +New Client.
- Add a Name for your application.
- Select the necessary scopes:![][image4]
-
If you have not created an authentication tenant, select Create Auth Tenant:
![][image1]