roles add-grants
Command: roles add-grants
The roles add-grants
command lets you add grants to a role.
You can specify multiple grants per role.
Example
This example adds a grant which permits read permissions to a role with the ID r_1234567890
:
Usage
Command options
-grant=<string>
- The grants you want to add. You can specify grants in compact string format or JSON. If you use JSON, be sure to escape it properly. You can optionally specify multiple grants.-ids=<string>
- The IDs of the roles you want to add grants to. You can specify one or more IDs. If you specify multiple IDs using text, use commas to separate the IDs. If you specify multiple IDs using JSON, use an array.-version=<int>
The version of the role to add grants to. If you do not specify a version, the command performs a check-and-set automatically.
CLI options
In addition to the command specific options, there are options common to all CLI commands and subcommands: