mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:12:22 +08:00

* some doc fixes * Update docs/sources/administration/service-accounts/add-service-account-token.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/administration/service-accounts/add-service-account-token.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update create-service-account.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
1.8 KiB
1.8 KiB
title | menuTitle | description | weight | keywords | |
---|---|---|---|---|---|
Create a service account in Grafana | Create a service account | How to create a service account in Grafana | 50 |
|
Create a service account in Grafana
A service account can be used to run automated workloads in Grafana, like dashboard provisioning, configuration, or report generation. For more information about how you can use service accounts, refer to [About service accounts]({{< relref "../service-accounts/about-service-accounts.md#">}}).
For more information about creating service accounts via the API, refer to [Create a service account in the HTTP API]({{< relref "../../http_api/serviceaccount.md#create-service-account">}}).
Before you begin
- Ensure you have added the feature toggle for service accounts
serviceAccounts
. For more information about adding the feature toggle, refer to [Enable service accounts]({{< relref "./enable-service-accounts.md#">}}). - Ensure you have permission to create and edit service accounts. By default, the organization administrator role is required to create and edit service accounts. For more information about user permissions, refer to [About users and permissions]({{< relref "../manage-users-and-permissions/about-users-and-permissions.md#">}}).
To create a service account
- Sign in to Grafana and hover your cursor over the Configuration (cog) icon in the sidebar.
- Click Service accounts.
- Click New service account.
- Enter a Display name.
- The display name must be unique as it determines the ID associated with the service account.
- We recommend that you use a consistent naming convention when you name service accounts. A consistent naming convention can help you scale and maintain service accounts in the future.
- You can change the display name at any time.
- Click Create service account.