Fleet UI: 1 new premium role (Observer+, GitOps is hidden) (#11028)

This commit is contained in:
RachelElysia
2023-04-07 11:36:47 -04:00
committed by GitHub
parent c7244add59
commit bfa257c8b5
31 changed files with 430 additions and 192 deletions
+14 -2
View File
@@ -242,15 +242,27 @@ To create your new API-only user, run `fleetctl user create` and pass values for
fleetctl user create --name "API User" --email api@example.com --password temp!pass --api-only
```
### Permissions for an API-only user
### Creating an API-only user
An API-only user can be given the same permissions as a regular user. The default access level is `Observer`. For more information on permissions, see the [user permissions documentation](https://fleetdm.com/docs/using-fleet/permissions#user-permissions).
If you'd like your API-only user to have a different access level than the default `Observer` role, you can specify what level of access the new user should have using the `--global-role` flag:
```
fleetctl user create --name "API User" --email api@example.com --password temp!pass --api-only --global-role admin
fleetctl user create --name "API User" --email api@example.com --password temp#pass --api-only --global-role admin
```
On Fleet Premium, use the `--team` flag setting `team_id:role` to create an API-only user on a team:
```
fleetctl user create --name "API Team Maintainer User" --email apimaintainer@example.com --password temp#pass --team 4:maintainer
```
### Changing permissions of an API-only user
To change roles of a current user, log into the Fleet UI as an admin and navigate to **Settings > Users**.
> Suggestion: To disable/enable a user's access to the UI (converting a regular user to an API-only user or vice versa), create a new user.
### Use fleetctl as an API-only user
To use fleetctl with an API-only user, you will need to log in with `fleetctl login`. Once done, you'll be able to perform tasks using `fleetctl` as your new API-only user.