You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 67c9517
Browse filesBrowse the repository at this point in the historyBrowse files
Assigns a role to a user of a STACKIT Cloud Foundry space
4
+
5
+
### Synopsis
6
+
7
+
Assigns a role to a user of a STACKIT Cloud Foundry space. The user is identified either by its GUID or by its username.
8
+
9
+
```
10
+
stackit beta scf space role set SPACE_ID [flags]
11
+
```
12
+
13
+
### Examples
14
+
15
+
```
16
+
Assign the role "space_developer" to the user with GUID "zzz" in the STACKIT Cloud Foundry space with ID "yyy" of the organization with ID "xxx"
17
+
$ stackit beta scf space role set yyy --organization-id xxx --role space_developer --user-guid zzz
18
+
19
+
Assign the role "space_auditor" to the user with username "jane.doe" in the STACKIT Cloud Foundry space with ID "yyy" of the organization with ID "xxx"
20
+
$ stackit beta scf space role set yyy --organization-id xxx --role space_auditor --user-name jane.doe
21
+
```
22
+
23
+
### Options
24
+
25
+
```
26
+
-h, --help Help for "stackit beta scf space role set"
27
+
--organization-id string The UUID of the organization
28
+
--role string The role to assign to the user (one of: [space_auditor, space_developer, space_manager, space_supporter])
29
+
--user-guid string The GUID of the user to assign the role to
30
+
--user-name string The username of the user to assign the role to
31
+
```
32
+
33
+
### Options inherited from parent commands
34
+
35
+
```
36
+
-y, --assume-yes If set, skips all confirmation prompts
prompt:=fmt.Sprintf("Are you sure you want to assign role %q to user %q in STACKIT Cloud Foundry organization %q?", model.Role, userLabel(model), model.OrganizationId)
70
+
prompt:=fmt.Sprintf("Are you sure you want to assign role %q to user %q in STACKIT Cloud Foundry organization %q?", model.Role, scfUtils.UserLabel(model.UserGuid, model.UserName), model.OrganizationId)
p.Outputf("Assigned role %q to user %q in STACKIT Cloud Foundry organization %s\n", model.Role, userLabel(model), model.OrganizationId)
134
+
p.Outputf("Assigned role %q to user %q in STACKIT Cloud Foundry organization %s\n", model.Role, scfUtils.UserLabel(model.UserGuid, model.UserName), model.OrganizationId)
134
135
returnnil
135
136
})
136
137
}
137
-
138
-
// userLabel returns the user identifier given on the command line, either the GUID or the username
0 commit comments