May I ask how to use the service account to call the interface for adding new users api

Thank you for reaching out about using a service account to call the API for creating users in Grafana. It seems you’re encountering permission issues with the service account.

To troubleshoot this, you might want to consider the following steps:

  1. Permissions: Ensure that the service account has the necessary permissions to create users via the API. Check the role/permissions assigned to the service account in Grafana.
  2. Token Usage: Double-check that you’re using the correct token from the service account when making the API call. Tokens are tied to specific permissions.
  3. API Configuration: Verify if there are any specific API settings that need to be configured to allow user creation via the service account.

If you’re still facing issues, I’d recommend some factors reaching out to Grafana’s support via email at or on their Slack channel (#help-grafana-community-forum) for more personalized assistance.