This topic describes the syntax of the HG_DISPLAY_NAME_TO _ID function in Hologres.
Introduction
hg_display_name_to_id: maps an Alibaba Cloud account or a Resource Access Management (RAM) user to the corresponding username in Hologres.
Synopsis
SELECT hg_display_name_to_id (aliyun_id)Parameter
- aliyun_id: an Alibaba Cloud account in the format of
xx@aliyun.com, or a RAM user in the format ofRAM$mainaccount:subuserorRAM$public. - The return value is the name of the corresponding Hologres user, such as
13532241323xxxfor an Alibaba Cloud account orp4_23402030200xxxfor a RAM user.
Example
SELECT hg_display_name_to_id ('RAM$main:subuser');