ALLOW PROJECT

Updated at:

Grants 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.

To list all packages you have created, run show packages; on the MaxCompute client.

number

No

Specifies the maximum data sensitivity level that a package user can access, based on label-based access control.

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.

Grant the test_project_b project permission to install the datashare package created in test_project_a:

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

Related commands