ccloud iam rolebinding list

Description

List the role bindings for a particular principal and/or role, and a particular scope.

ccloud iam rolebinding list [flags]

Flags

    --principal string       Principal whose rolebindings should be listed.
    --current-user           Show rolebindings belonging to current user.
    --role string            List rolebindings under a specific role given to a principal. Or if no principal is specified, list principals with the role.
    --cloud-cluster string   Cloud cluster ID for scope of rolebinding listings.
    --environment string     Environment ID for scope of rolebinding listings.
    --current-env            Use current environment ID for scope.
-o, --output string          Specify the output format as "human", "json", or "yaml". (default "human")

Global Flags

-h, --help            Show help for this command.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

Examples

To list the role bindings for current user:

ccloud iam rolebinding list --current-user

To list the role bindings for a specific principal:

ccloud iam rolebinding list --principal User:frodo

To list the role bindings for a specific principal, filtered to a specific role:

ccloud iam rolebinding list --principal User:frodo --role CloudClusterAdmin --environment env-123 --cloud-cluster lkc-1111aaa

To list the principals bound to a specific role:

ccloud iam rolebinding list --role CloudClusterAdmin --current-env --cloud-cluster lkc-1111aaa

See Also