kf set-space-role

Name

kf set-space-role - Assgin a Role to a Subject (User|Group|ServiceAccount).

Synopsis

kf set-space-role SUBJECT_NAME ROLE [flags]

Examples

# Assign a User to a Role
kf set-space-role john@example.com SpaceDeveloper

# Assign a Group to a Role
kf set-space-role my-group SpaceAuditor -t Group

# Assign a ServiceAccount to a Role
kf set-space-role my-sa SpaceAuditor -t ServiceAccount

Flags

-h, --help

help for set-space-role

-t, --type=string

Type of subject, valid values are Group|ServiceAccount|User(default). (default "User")

Inherited flags

These flags are inherited from parent commands.

--as=string

Username to impersonate for the operation.

--as-group=strings

Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.

--config=string

Path to the Kf config file to use for CLI requests.

--kubeconfig=string

Path to the kubeconfig file to use for CLI requests.

--log-http

Log HTTP requests to standard error.

--space=string

Space to run the command against. This flag overrides the currently targeted Space.