Help Center/ Huawei Cloud Astro Zero/ FAQs/ Management Center/ How Do I Obtain the ID of a User or Portal User?
Updated on 2025-08-14 GMT+08:00

How Do I Obtain the ID of a User or Portal User?

If you need to enter the user ID or portal user ID in the input parameters of the script, flow, or page code execution logic, you can use either of the following methods to obtain the ID.

Obtaining the ID of a User or Portal User

  1. On the Huawei Cloud Astro Zero console, click Access Homepage to go to the application development page.
  2. In the upper left corner of the page, click and choose Environments > Environment Configuration.
  3. In the navigation tree, choose User Security > Users, or choose Maintenance > Global Elements > Portal Users.
  4. In the list on the right, click a user or portal user name to go to the user details page.
  5. The URL of the browser contains the user ID.

    For example, if the URL of a user details page is https://Huawei Cloud Astro Zero domain/studio/index.html#/admin/user/10gd000000bcXXXXXXXX/detail, the information in bold is the user ID.

    If the URL of a portal user details page is https://Huawei Cloud Astro Zero domain/studio/index.html#/admin/portaluser/10gg000000mXXXXXXXXX/detail, the information in bold is the portal user ID.

Using the Console to Obtain the IDs of All Users or Portal Users

  1. Go to the data debugging page by referring to Querying Object Data on the Console.
  2. Run the SQL statement to obtain the IDs of all users or portal users.

    • The SQL statement for obtaining all user IDs is select name,id from User.
    • The SQL statement for obtaining all portal user IDs is select name,id from PortalUser.
    Figure 1 Obtaining all user IDs