7.7.9.2 GRANT ROLE

Purpose

The GRANT ROLE command sets the role for a user.

Syntax

GRANT ROLE { ALL | role1 [, role2, ...] } TO USER { ALL | user1 [, user2...] }

Usage Notes

  • role is the name of the role.

  • The ALL argument grants all roles to the user.

  • The TO USER ALL argument grants the role to all users.

Examples

Example 7-143 Granting a Role to a User

This example shows how to grant a role to a user.

CellCLI> GRANT ROLE gd_monitor TO USER agarcia