ALLOW PROJECT
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 |
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
CREATE PACKAGE: Create a package.
ADD TO PACKAGE: Add resources to a package for package users.
REMOVE FROM PACKAGE: Remove resources from a package.
DISALLOW PROJECT: Revoke a project's permission to install a package.
DESCRIBE PACKAGE: View the details of a package.
DROP PACKAGE: Delete a package.
INSTALL PACKAGE: Install a package in a target MaxCompute project.
UNINSTALL PACKAGE: Uninstall a package from a target MaxCompute project.
GRANT: Grant a user or role permission to access a package.
REVOKE: Revoke permission from a user or role to access a package.
SHOW: View a list of created or installed packages in a project.