All Products
Search
Document Center

Hologres:Account system

Last Updated:Mar 26, 2026

Hologres integrates with the Alibaba Cloud account system for authentication and access control. Understanding the account types and identifier formats lets you grant permissions correctly and connect to Hologres instances from client applications.

Account types

Hologres supports three account types. Alibaba Cloud accounts and RAM users are cloud-level identities managed outside Hologres. Custom accounts are database-level identities that exist only within a Hologres instance.

Account typeWhen to use
Alibaba Cloud accountUse this account to create and manage Hologres instances. Typical operations include logging on to the Hologres console, managing databases, switching the billing method from pay-as-you-go to subscription, and granting permissions to other users.
RAM userUse a RAM user to grant team members or applications scoped access to Hologres instances without sharing the root Alibaba Cloud account. With relevant permissions, a RAM user can create and manage Hologres instances. Resources remain owned by the Alibaba Cloud account, not the RAM user.
Custom accountUse a custom account for database-level operations within a single Hologres instance, such as creating or deleting databases, tables, and views, or connecting to a database. Custom accounts have the following limitations: passwords are encrypted with MD5, and access to MaxCompute tables is not available by default. To access MaxCompute tables, map the custom account to a RAM user that has the required permissions. For more information, see Manage users.

Login accounts

When granting permissions to an Alibaba Cloud account or a RAM user, use the login account as part of the permission statement. Get the login account from the Security Settings page of the Account Center.

Obtain the ID of your Alibaba Cloud account

Alibaba Cloud account formats

FormatExample
ALIYUN$<Login Account>@aliyun.comALIYUN$company***@aliyun.com
<Login Account>@aliyun.comcompany***@aliyun.com

RAM user formats

The following formats all identify the same RAM user. <subUserName> is the RAM user name, <Login Account> is the login account of the parent Alibaba Cloud account, and <Account ID> is the numeric account ID.

FormatExample
<subUserName>@<Login Account>.onaliyun.comholouser***@company.onaliyun.com
<subUserName>@<Login Account>holouser@company
<subUserName>@<Account ID>.onaliyun.comholouser@123456789xxxx
<subUserName>@<Account ID>holouser@123456789xxxx
RAM$<subUserName>RAM$holo_test
RAM$<Login Account>:<subUserName>RAM$company:holouser
RAM$<Account ID>:<subUserName>RAM$123456789xxxx:holouser

Account IDs

An account ID is a numeric string. Example: 189813715xxxx. Get it from the Security Settings page of the Account Center.

725

To get the account ID of a RAM user (also called its UID), go to the RAM users page and click the target user name.

image
Note

When granting permissions to a RAM user by UID, use the format p4_UID. Example: p4_12333388xxx.

Grant permissions using account IDs:

CREATE USER "189813715xxxx"; -- Grants the Alibaba Cloud account (ID: 189813715xxxx) access to Hologres.
CREATE USER "p4_12333388xxx" superuser; -- Assigns the superuser role to the RAM user (UID: 12333388xxx).

To view the account ID of the current user:

SELECT current_user;

AccessKey ID and secret

The AccessKey ID and AccessKey secret are the credentials used to connect to Hologres instances programmatically. The AccessKey ID acts as a username and the AccessKey secret acts as a password. Get them from the Security Management page of the User Management console.

AccessKey pairs have a validity period. If a pair expires, create a new one. For more information, see Create an Alibaba Cloud account.

When connecting to Hologres from a PostgreSQL client or a JDBC client, enter the AccessKey ID as the username and the AccessKey secret as the password.

What's next