This topic describes how to apply for data permissions.

DataWorks supports the following types of data:

  • Table: data tables.
  • Function: user-defined functions (UDFs) that can be used in SQL.
  • Resource: such as text files or MapReduce JAR files.

DataWorks strictly controls permissions for these three types of data. You must apply for the required permissions to use them.

Apply for the permission to preview table data

  1. Log on to Data Map, locate the target table, and click the table name to go to the details page of the table.
  2. On the details page of the table, click Request Permission to apply for permissions on the table, as shown in the following figure.
    Note If a table is hidden, the Request Permission button is not displayed. For more information about how to hide a table, see Owned by Me and Managed by Me as Workspace Administrator.
    Parameter Description
    Grant To The user to which the permission is granted. You can select Current Account or Specified Account.
    • If you select Current Account, the permission is granted to you after the application is approved.
    • If you select Specified Account, you must set Account to the logon name of the specified user. After the application is approved, the permission is granted to the specified user.
    Validity Period The validity period of the applied permission, in days. If you do not set this parameter, the permission does not expire. When the validity period expires, the system automatically revokes the permission.
    Reason The reason for applying for the permission. Enter a brief reason for faster approval.
  3. After completing the configuration in the dialog box, click Submit and wait for approval. After the application is approved, you can preview the table data.
    Note After submitting a permission application, you can choose Data Map > My Tables > Permissions > Submitted by Me to view the application status.

Apply for function and resource permissions

  1. Choose Data Map > My Tables > Permissions.
  2. Click Request Permission in the upper-right corner.
  3. Set all parameters in the Request Permission dialog box.
    Parameter Description
    Object Type The type of object for which the permission is applied. You can select Function or Resource.
    Grant To The user to which the permission is granted. You can select Current Account or Specified Account.
    • If you select Current Account, the permission is granted to you after the application is approved.
    • If you select Specified Account, you must set Account. After the application is approved, the permission is granted to the specified user.
    Project Name The name of the MaxCompute project that contains the requested function or resource. The project must belong to the current organization. Fuzzy match is supported.
    Function Name or Resource Name The name of the function or resource in the project. Enter the full name of the resource, including the file suffix, such as my_mr.jar.
    Validity Period The validity period of the applied permission, in days. If you do not set this parameter, the permission does not expire. When the validity period expires, the system automatically revokes the permission.
    Reason The reason for applying for the permission. Enter a brief reason for faster approval.
  4. After completing the configuration, click Submit and wait for approval. You can choose Data Map > My Tables > Permissions > Submitted by Me to view the application status.