Help Center/ Object Storage Service/ SDK Reference/ Node.js/ FAQs (SDK for Node.js)/ How Do I Get My Account ID and User ID? (SDK for Node.js)
Updated on 2024-11-13 GMT+08:00

How Do I Get My Account ID and User ID? (SDK for Node.js)

Obtaining Account, IAM User, and Project Information

  • Using the console
    1. On the Huawei Cloud homepage, click Console in the upper right corner.
    2. In the upper right corner, hover over the username and choose My Credentials from the drop-down list.
      Figure 1 My Credentials
    3. On the API Credentials page, view the account name, account ID, IAM user name, IAM user ID, project name, and project ID.
      The project ID varies depending on the region where your service is located.
      Figure 2 Viewing the account, user, and project information
  • Calling an API

Obtaining User Group Information

  1. Log in to the Huawei Cloud console, access the IAM console, and choose User Groups in the navigation pane.
  2. Expand the details of the desired user group and view its name and ID.

Obtaining Region Information

  1. Log in to the Huawei Cloud console, access the IAM console, and choose Projects in the navigation pane.
  2. View the content in the Project Name column. The content in this column indicates the ID of the region that the project belongs to.

Obtaining Agency Information

  1. Log in to the Huawei Cloud console, access the IAM console, and choose Agencies in the navigation pane.
  2. Hover over the desired agency to view its name (in the first line) and ID (in the second line) in the dark pop-up box.