user role grant

The user role grant command assigns one or more roles to a user.

Usage

user role grant --u UserName --r Roles
RequiredArgumentDescription
Yes--u UserNameSpecifies the name of the user to whom you want to assign a role.
Yes--r RolesSpecifies the roles for the user. Separate multiple roles with a comma. Do not use spaces. If the role name contains a space, enclose the role in quotes.

Example

This example assigns two roles, USBanking and CaliforniaUsers, to the user allan12.

user role grant --u allan12 --r USBanking,CaliforniaUsers