Teradata - Add User to a Role

Raymond Tang Raymond Tang 0 903 0.56 index 1/19/2021

Add user to a role

The following code snippet add userAto a role named TestRole:

grant TestRole to userA;

Add user to a role with admin option

You can also grant a role to a user with admin option so that the user can drop role, grant and revoke roles from user.

grant TestRole to userA with admin option;

The above code snippet adds user userAto role TestRole with admin option.

teradata

Join the Discussion

View or add your thoughts below

Comments