kf set-space-role
Assgin a Role to a Subject (User|Group|ServiceAccount).
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, --helphelp for set-space-role
-t, --type=stringType of subject, valid values are Group|ServiceAccount|User(default). (default "User")
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.
Last modified October 24, 2025: Remove references to cluster task (#1089) (da51826)