Preparations for a RAM user to use Graph Database

Updated at:

Before a Resource Access Management (RAM) user can manage Graph Database (GDB), you must grant the required permissions to the RAM user. This topic describes how to grant a RAM user access to the GDB console and authorize GDB to import data from Object Storage Service (OSS).

Grant a RAM user access to the console

Note

The following operations must be performed using an Alibaba Cloud account.

  1. Log on to the RAM console as a RAM administrator.

  2. In the left-side navigation pane, choose Identities > Users.

  3. On the Users page, find the required RAM user, and click Add Permissions in the Actions column.

    image

    You can also select multiple RAM users and click Add Permissions in the lower part of the page to grant permissions to the RAM users at a time.

    1. Configure the Resource Scope parameter.

    2. Configure the Principal parameter.

      The principal is the RAM user to which you want to grant permissions. The current RAM user is automatically selected.

    3. Select an access policy.

      The following table describes the GDB-related permissions.

      Access policy name

      Description

      AliyunGDBFullAccess

      Grants full permissions to operate the GDB console. This permission is the preferred choice for full access.

      AliyunGDBReadOnlyAccess

      This permission grants access to the GDB console only.

      AliyunCloudMonitorFullAccess

      Grants permissions to view monitoring information. This permission is the preferred choice for monitoring.

    4. Click OK.

  4. Click Close.

Authorize GDB to access OSS

Note

You can use an Alibaba Cloud account or a RAM user that has the AliyunGDBFullAccess permission to perform the following operations.

  1. Log on to the GDB console.
  2. Click Data Import - OSS Authorization.

  3. The authorization is complete when the message The service-linked role was created successfully. GDB can now access your OSS is displayed.

After you authorize GDB to access OSS, the system automatically creates the AliyunServiceRoleForGDB service-linked role. To import data from OSS, you need the Alibaba Cloud Resource Name (ARN) of this role. You can obtain the ARN using one of the following methods:

  • Log on to the RAM console to view the ARN.GDB-角色ARN信息

  • If a RAM user cannot log on to the RAM console, you can obtain the ARN by replacing <Aliuid> in the following example with the UID of your Alibaba Cloud account:

    acs:ram::<Aliuid>:role/aliyunserviceroleforgdb

    For example, if the UID of your Alibaba Cloud account is 123456789, the ARN is acs:ram::123456789:role/aliyunserviceroleforgdb.

    Note

    Log on to the Alibaba Cloud Management Console. Move the pointer over the profile picture in the upper-right corner to obtain the UID of your Alibaba Cloud account.阿里云账号UID