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

  • What are you trying to achieve?
    I hope to use the service account to call the API for creating users
  • How are you trying to achieve it?
    Call the token of the service account instead of the API key
  • What happened?
    When calling the interface, I was told that the service account does not have permission to call the API for creating users
  • What did you expect to happen?
    I hope to use the token from the service account instead of the API key

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 community@grafana.com or on their Slack channel (#help-grafana-community-forum) for more personalized assistance.