Skip to content

Latest commit

 

History

History
246 lines (150 loc) · 11.8 KB

File metadata and controls

246 lines (150 loc) · 11.8 KB
title Identity Access Management for {{{ .premium }}}
summary Learn how to manage identity access in {{{ .premium }}}.

Identity Access Management for {{{ .premium }}}

This document describes how to manage user access, roles, and permissions across organizations and TiDB instances in {{{ .premium }}}.

Before you can use TiDB Cloud, sign up for an account. You can either sign up with email and password to manage your password in TiDB Cloud, or choose your Google, GitHub, or Microsoft account for single sign-on (SSO) to TiDB Cloud.

Organizations and TiDB instances

{{{ .premium }}} uses a hierarchical structure of organizations and instances to help you manage users and TiDB instances efficiently. As an Organization Owner, you can create and manage multiple instances within your organization.

For example:

- Your organization
    - TiDB instance 1
    - TiDB instance 2
    - TiDB instance 3
    ...

In this structure:

  • Users can access an organization only if they are members of it.
  • To access a TiDB instance, users need at least read permissions for that instance in the organization.

For more information about user roles and permissions, see User Roles.

Organizations

An organization can include multiple TiDB instances.

TiDB Cloud calculates billing at the organization level, with the billing details available for each instance.

If you are an Organization Owner, you have full administrative privileges in your organization.

For example, you can do the following:

  • Create TiDB instances for different purposes.
  • Assign organization-level and instance-level roles to different users.
  • Configure organization-wide settings such as time zone.

TiDB instances

If you are an Instance Manager, you can manage settings and operations for a specific TiDB instance.

For example, you can do the following:

  • Delete a TiDB instance when it is no longer needed.
  • Modify instance configurations as needed.

User roles

TiDB Cloud defines different user roles to control permissions at both the organization and TiDB instance levels.

You can grant roles to users at the organization level or at the TiDB instance level. It is recommended to plan your hierarchy carefully to ensure least‑privilege access and maintain security.

Organization roles

At the organization level, TiDB Cloud defines the following roles, in which Organization Owner can invite members and grant organization roles to members.

Permission Organization Owner Organization Billing Manager Organization Billing Viewer Organization Console Audit Manager Organization Viewer
Manage organization settings, such as TiDB instances, API keys, and time zones.
Add or remove organization members, and edit organization roles.
Instance Manager permissions for all TiDB instances in the organization.
Manage payment information for the organization.
View billing and use Cost Explorer.
Manage console audit logging for the organization.
View all organization members.
View organization name and time zone.

Note:

  • The Organization Console Audit Manager role manages audit logging in the TiDB Cloud console only, not database audit logging.

TiDB instance roles

At the TiDB instance level, TiDB Cloud defines two roles: Instance Manager and Instance Viewer.

Note:

  • The Organization Owner automatically inherits all Instance Manager permissions for every instance in the organization.
  • Each TiDB instance role inherits all the permissions of the Organization Viewer role by default.
  • If a member in your organization does not have any TiDB instance roles, the member cannot access any TiDB instances in your organization.
Permission Instance Manager Instance Viewer
Manage TiDB instance settings
Manage database audit logging of the TiDB instance.
Manage TiDB instance operations, such as TiDB instance creation, modification, and deletion.
Manage TiDB instance data, such as data import, data backup and restore, and data migration.
Manage changefeeds.
Review and reset the root password for the TiDB instance.
View the overview, backup records, metrics, events, and changefeeds of the TiDB instance.

Manage organization access

View and switch between organizations

To view and switch between organizations, take the following steps:

  1. In the TiDB Cloud console, click the combo box in the upper-left corner. The list of organizations you belong to is displayed.

    Tip:

    • If you are currently on the page of a specific TiDB instance, after clicking the combo box in the upper-left corner, you also need to click ← in the combo box to return to the organization list.
    • If you are a member of multiple organizations, you can click the target organization name in the combo box to switch your account between organizations.
  2. To view the detailed information of your organization, such as the organization ID and time zone, click the organization name, and then click Organization Settings > General in the left navigation pane.

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:

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > General.

  3. In the Time Zone section, select your time zone from the drop-down list.

  4. Click Update.

Invite a user to your organization

If you are in the Organization Owner role, you can invite users to your organization.

Note:

You can also invite a user to access or manage a TiDB instance directly as needed, which also makes the user your organization member.

To invite a user to an organization, take the following steps:

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > Users.

  3. On the Users page, click Invite User.

  4. Enter the email address of the user to be invited, and then select an organization role for the user.

    Tip:

    • The default role at the organization level is Organization Viewer.
    • If you want to invite multiple users at one time, you can enter multiple email addresses.
    • The invited user does not have access to any TiDB instances by default. To grant TiDB instance permissions to the user, see Invite a user to access or manage a TiDB instance.
  5. If you only need to assign the user an organization role and do not need to assign any project or TiDB instance roles, disable the Add access for projects and instances option.

  6. Click Invite. 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.

  7. After receiving this email, the user needs to click the link in the email to verify the identity, and a new page shows.

  8. If the invited email address has not been used to sign up for a TiDB Cloud account, the user is directed to the sign-up page to create an account.

Note:

The verification link in the email expires in 24 hours. If the user you want to invite does not receive the email, click Resend.

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:

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > Users.

  3. On the Users page, click ... > Edit Role in the row of the target member.

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:

Note:

If a member is removed from an organization, the TiDB instance access for the member is also removed.

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > Users.

  3. On the Users page, click ... > Delete in the row of the target member.

Manage TiDB instance access

Invite a user to access or manage a TiDB instance

If you are in the Organization Owner role, you can invite users to access or manage your TiDB instances.

Note:

When you invite a user not in your organization to access or manage your TiDB instance, the user automatically joins your organization as well.

To invite a user to access or manage a TiDB instance, take the following steps:

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > Users.

  3. On the Users page, click Invite User.

  4. Enter the email address of the user to be invited, and then select an organization role for the user.

  5. Make sure the Add access for projects and instances option is enabled, click Add access in the Instance access section, and then select a TiDB instance role for the user.

  6. Click Add access. 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.

  7. After receiving this email, the user needs to click the link in the email to verify the identity, and a new page shows.

  8. 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.

Note:

The verification link in the email will expire in 24 hours. If your user doesn't receive the email, click Resend.

Modify TiDB instance roles

If you are in the Organization Owner role, you can modify TiDB instance roles of all organization members in your organization.

To modify the TiDB instance role of a member, take the following steps:

  1. In the TiDB Cloud console, switch to your target organization using the combo box in the upper-left corner.

  2. In the left navigation pane, click Organization Settings > Users.

  3. On the Users page, click ... > Edit Role of the target member.

Manage user profiles

In TiDB Cloud, you can easily manage your profile, including your first name, last name, and phone number.

  1. In the TiDB Cloud console, click in the lower-left corner.

  2. Click Account Settings.

  3. In the displayed dialog, update the profile information, and then click Update.