ALLOW PROJECT

更新时间:
复制 MD 格式

Allows a resource provider to grant another project permission to install a package.

Syntax

allow project <project_name> to install package <package_name> [using label <number>];

Parameters

Parameter

Required

Description

project_name

Yes

The name of the MaxCompute project that you want to authorize to install the package.

Log on to the MaxCompute console. In the top navigation bar, select a region. The project name is on the Projects tab.

package_name

Yes

The name of the package.

You can run the show packages; command on a MaxCompute client to view existing packages.

number

No

Applies a label-based access control policy that specifies the maximum data sensitivity level a package user can access.

The authorized MaxCompute project can access the package, but can only access data with a sensitivity level of number or lower.

If this parameter is not specified, the default level is 0.

For more information, see label-based access control.

Example

Run the following command in the test_project_a project.

This example grants the test_project_b project permission to install the datashare package created in the test_project_a project:

-- Grant the test_project_b project permission to install the package.
allow project test_project_b to install package datashare;

Related commands