Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

RBAC: endpoints to support reading and setting role assignments #110

Merged

Conversation

IevaVasiljeva
Copy link
Contributor

@IevaVasiljeva IevaVasiljeva commented Sep 9, 2022

What this PR does / why we need it:
Adds support for two new endpoints - one for reading user, team and service account assignments for a specific role, and another one for updating these assignments.

These endpoints are intended to be used by Grafana's Terraform provider, and will not be exposed to the user through the UI or documented for external use.

Which issue(s) this PR fixes:

Partially resolves grafana/terraform-provider-grafana#380

Special notes for your reviewer:

Related Terraform PR: grafana/terraform-provider-grafana#647
Related Grafana's backend PR: https://github.com/grafana/grafana-enterprise/pull/3823

@CLAassistant
Copy link

CLAassistant commented Sep 9, 2022

CLA assistant check
All committers have signed the CLA.

@IevaVasiljeva IevaVasiljeva changed the title RBAC: endpoints to support role reading and assignments RBAC: endpoints to support reading and setting role assignments Sep 9, 2022
@IevaVasiljeva IevaVasiljeva marked this pull request as ready for review September 15, 2022 14:01
role_assignments.go Outdated Show resolved Hide resolved
Copy link
Member

@julienduchesne julienduchesne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

IevaVasiljeva and others added 4 commits September 16, 2022 12:12
…s' of github.com:grafana/grafana-api-golang-client into rbac-and-terraform/endpoint-for-reading-role-assignments
Co-authored-by: Jo <me@jguer.space>
@julienduchesne julienduchesne merged commit 557e30f into master Sep 21, 2022
@julienduchesne julienduchesne deleted the rbac-and-terraform/endpoint-for-reading-role-assignments branch September 21, 2022 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants