stratumctl role-bindings
Manage IAM role bindings
stratumctl role-bindings [flags]Aliases: rb, rolebinding, rolebindings
Subcommands
Section titled “Subcommands”stratumctl role-bindings grant: Grant a role to a user at a scopestratumctl role-bindings list: List role bindings for a userstratumctl role-bindings revoke: Revoke a role binding from a user
stratumctl role-bindings grant
Section titled “stratumctl role-bindings grant”Grant a role to a user at a scope
stratumctl role-bindings grant --user <id> --role <role> --scope <type>:<id> [flags]Grant a role to a user. –scope is “<type>:<id>” — type is one of install, organization, project. Examples:
stratumctl role-bindings grant --user u-AAA --role project-admin --scope project:p-BBBstratumctl role-bindings grant --user u-AAA --role org-owner --scope organization:o-CCC| Flag | Type | Default | Description |
|---|---|---|---|
--role |
string | Role name (required; e.g. project-admin) | |
--scope |
string | Scope as <type>:<id> (required) |
|
--user |
string | User ID to grant the role to (required) |
stratumctl role-bindings list
Section titled “stratumctl role-bindings list”List role bindings for a user
stratumctl role-bindings list --user <id> [flags]Examples
Section titled “Examples”stratumctl role-bindings list --user u-alicestratumctl role-bindings list --user u-alice --output json| Flag | Type | Default | Description |
|---|---|---|---|
--user |
string | User ID (required) |
stratumctl role-bindings revoke
Section titled “stratumctl role-bindings revoke”Revoke a role binding from a user
stratumctl role-bindings revoke <role-binding-id> --user <user-id> [flags]Examples
Section titled “Examples”stratumctl role-bindings revoke rb-7k2m9x4q8a --user u-alice| Flag | Type | Default | Description |
|---|---|---|---|
--user |
string | User ID the binding belongs to (required) |
