Identity Access Management
This document describes how to manage access to organizations, projects, roles, and user profiles in TiDB Cloud.
Before accessing TiDB Cloud, create a TiDB cloud account. You can either sign up with email and password so that you can manage your password using TiDB Cloud, or choose your Google, GitHub, or Microsoft account for single sign-on (SSO) to TiDB Cloud.
Organizations and projects
TiDB Cloud provides a hierarchical structure based on organizations and projects to facilitate the management of TiDB Cloud users and clusters. If you are an organization owner, you can create multiple projects in your organization.
For example:
- Your organization
- Project 1
- Cluster 1
- Cluster 2
- Project 2
- Cluster 3
- Cluster 4
- Project 3
- Cluster 5
- Cluster 6
Under this structure:
- To access an organization, a user must be a member of that organization.
- To access a project in an organization, a user must at least have the read access to the project in that organization.
- To manage clusters in a project, a user must be in the
Project Owner
role.
For more information about user roles and permissions, see User Roles.
Organizations
An organization can contain multiple projects.
TiDB Cloud calculates billing at the organization level and provides the billing details for each project.
If you are an organization owner, you have the highest permission in your organization.
For example, you can do the following:
- Create different projects (such as development, staging, and production) for different purposes.
- Assign different users with different organization roles and project roles.
- Configure organization settings. For example, configure the time zone for your organization.
Projects
A project can contain multiple clusters.
If you are a project owner, you can manage clusters and project settings for your project.
For example, you can do the following:
- Create multiple clusters according to your business need.
- Assign different users with different project roles.
- Configure project settings. For example, configure different alert settings for different projects.
User roles
TiDB Cloud defines different user roles to manage different permissions of TiDB Cloud users in organizations, projects, or both.
You can grant roles to a user at the organization level or at the project level. Make sure to carefully plan the hierarchy of your organizations and projects for security considerations.
Organization roles
At the organization level, TiDB Cloud defines four roles, in which Organization Owner
can invite members and grant organization roles to members.
Permission | Organization Owner | Organization Billing Admin | Organization Console Audit Admin | Organization Member |
---|---|---|---|---|
Manage organization settings, such as projects, API keys, and time zones. | ✅ | ❌ | ❌ | ❌ |
Invite users to or remove users from an organization, and edit organization roles of users. | ✅ | ❌ | ❌ | ❌ |
All the permissions of Project Owner for all projects in the organization. | ✅ | ❌ | ❌ | ❌ |
Create projects with Customer-Managed Encryption Key (CMEK) enabled | ✅ | ❌ | ❌ | ❌ |
View bills and edit payment information for the organization. | ✅ | ✅ | ❌ | ❌ |
Manage TiDB Cloud console audit logging for the organization. | ✅ | ❌ | ✅ | ❌ |
View users in the organization and projects in which the member belong to. | ✅ | ✅ | ✅ | ✅ |
Project roles
At the project level, TiDB Cloud defines three roles, in which Project Owner
can invite members and grant project roles to members.
Permission | Project Owner | Project Data Access Read-Write | Project Data Access Read-Only |
---|---|---|---|
Manage project settings | ✅ | ❌ | ❌ |
Invite users to or remove users from a project, and edit project roles of users. | ✅ | ❌ | ❌ |
Manage database audit logging of the project. | ✅ | ❌ | ❌ |
Manage spending limit for all TiDB Serverless clusters in the project. | ✅ | ❌ | ❌ |
Manage cluster operations in the project, such as cluster creation, modification, and deletion. | ✅ | ❌ | ❌ |
Manage branches for TiDB Serverless clusters in the project, such as branch creation, connection, and deletion. | ✅ | ❌ | ❌ |
Manage cluster data such as data import, data backup and restore, and data migration. | ✅ | ✅ | ❌ |
Manage Data Service for data read-only operations such as using or creating endpoints to read data. | ✅ | ✅ | ✅ |
Manage Data Service for data read and write operations. | ✅ | ✅ | ❌ |
View cluster data using Chat2Query. | ✅ | ✅ | ✅ |
Modify and delete cluster data using Chat2Query. | ✅ | ✅ | ❌ |
View clusters in the project, view cluster backup records, and manage changefeeds. | ✅ | ✅ | ✅ |
Manage organization access
View organizations
To check which organizations you belong to, take the following steps:
- Click in the lower-left corner of the TiDB Cloud console.
- Click Organization Settings. You can view your organization on the page that is displayed.
Switch between organizations
If you are a member of multiple organizations, you can switch your account between organizations.
To switch between organizations, take the following steps:
- Click in the lower-left corner of the TiDB Cloud console.
- Click the name of the organization you want to switch to.
Set the time zone for your organization
If you are in the Organization Owner
role, you can modify the system display time according to your time zone.
To change the local timezone setting, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the Time Zone tab.
Click the drop-down list and select your time zone.
Click Save.
Invite an organization member
If you are in the Organization Owner
role, you can invite users to your organization.
To invite a member to an organization, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, and then select By Organization.
Click Invite.
Enter the email address of the user to be invited, and then select an organization role for the user.
Click Confirm. Then the new user is successfully added into the user list. At the same time, an email is sent to the invited email address with a verification link.
After receiving this email, the user needs to click the link in the email to verify the identity, and a new page shows.
If the invited email address has not been signed up for a TiDB Cloud account, the user is directed to the sign-up page to create an account. If the email address has been signed up for a TiDB Cloud account, the user is directed to the sign-in page, and after sign-in, the account joins the organization automatically.
Modify organization roles
If you are in the Organization Owner
role, you can modify organization roles of all members in your organization.
To modify the organization role of a member, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, and then select By Organization.
Click the role of the target member, and then modify the role.
Remove an organization member
If you are in the Organization Owner
role, you can remove organization members from your organization.
To remove a member from an organization, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, and then select By Organization.
Click Delete in the user row that you want to delete.
Manage project access
View projects
To check which project you belong to, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The Projects tab is displayed by default.
Create a project
If you are in the Organization Owner
role, you can create projects in your organization.
To create a new project, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The Projects tab is displayed by default.
Click Create New Project.
Enter your project name.
Click Confirm.
Rename a project
If you are in the Organization Owner
role, you can rename any projects in your organization. If you are in the Project Owner
role, you can rename your project.
To rename a project, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The Projects tab is displayed by default.
In the row of your project to be renamed, click Rename.
Enter a new project name.
Click Confirm.
Invite a project member
If you are in the Organization Owner
or Project Owner
role, you can invite members to your projects.
To invite a member to a project, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, select By Project, and then select your project from the drop-down list.
Click Invite.
Enter the email address of the user to be invited, and then select a project role for the user.
Click Confirm. Then the new user is successfully added into the user list. At the same time, an email is sent to the invited email address with a verification link.
After receiving this email, the user needs to click the link in the email to verify the identity, and a new page shows.
If the invited email address has not been signed up for a TiDB Cloud account, the user is directed to the sign-up page to create an account. If the email address has been signed up for a TiDB Cloud account, the user is directed to the sign-in page. After sign-in, the account joins the project automatically.
Modify project roles
If you are in the Organization Owner
role, you can modify project roles of all project members in your organization. If you are in the Project Owner
role, you can modify project roles of all members in your project.
To modify the project role of a member, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, select By Projects, and then choose your project in the drop-down list.
Click the role of the target member, and then modify the role.
Remove a project member
If you are in the Organization Owner
or Project Owner
role, you can remove project members.
To remove a member from a project, take the following steps:
Click in the lower-left corner of the TiDB Cloud console.
Click Organization Settings. The organization settings page is displayed.
Click the User Management tab, and then select the By Project.
Click Delete in the user row that you want to delete.
Manage user profiles
In TiDB Cloud, you can easily manage your profile, including your first name, last name, and phone number.
Click in the lower-left corner of the TiDB Cloud console.
Click Account Settings. The Profile tab is displayed by default.
Update the profile information, and then click Save.