confluent iam rbac role-binding list

Description

List role bindings assigned to a principal based on scopes.

confluent iam rbac role-binding list [flags]

Flags

    --principal string                 Principal ID, which limits role bindings to this principal. If unspecified, list all principals and role bindings.
    --current-user                     List role bindings assigned to the current user.
    --role string                      Predefined role assigned to "--principal". If "--principal" is unspecified, list all principals assigned the role.
    --environment string               Environment ID, which specifies the environment scope.
    --current-environment              Use current environment ID for the environment scope.
    --cloud-cluster string             Cloud cluster ID, which specifies the cloud cluster scope.
    --kafka-cluster string             Kafka cluster ID, which specifies the Kafka cluster scope.
    --schema-registry-cluster string   Schema Registry cluster ID, which specifies the Schema Registry cluster scope.
    --ksql-cluster string              ksqlDB cluster name, which specifies the ksqlDB cluster scope.
    --resource string                  Resource type and identifier using "Prefix:ID" format. If specified with "--role" and no principals, list all principals and role bindings.
    --inclusive                        List role bindings for specified scopes and nested scopes. Otherwise, list role bindings for the specified scopes. If scopes are unspecified, list only organization-scoped role bindings.
-o, --output string                    Specify the output format as "human", "json", or "yaml". (default "human")

Global Flags

-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

Examples

List the role bindings for the current user:

confluent iam rbac role-binding list --current-user

List the role bindings for user “u-123456”:

confluent iam rbac role-binding list --principal User:u-123456

List the role bindings for principals with role “CloudClusterAdmin”:

confluent iam rbac role-binding list --role CloudClusterAdmin --current-environment --cloud-cluster lkc-123456

List the role bindings for user “u-123456” with role “CloudClusterAdmin”:

confluent iam rbac role-binding list --principal User:u-123456 --role CloudClusterAdmin --environment env-123456 --cloud-cluster lkc-123456

List the role bindings for user “u-123456” for all scopes:

confluent iam rbac role-binding list --principal User:u-123456 --inclusive

List the role bindings for the current user with the environment scope and nested scopes:

confluent iam rbac role-binding list --current-user --environment env-123456 --inclusive

See Also