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 |
|
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
-
CREATE PACKAGE: Create a package.
-
ADD TO PACKAGE: Add resources required by package users to a package.
-
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.