-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Description
Describe the need
I may have missed something, but after a reasonably thorough scan of the docs I didn't see a resource for organization role assignment to a user or team.
The API endpoints I'm referring to are:
- https://docs.github.com/en/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-team
- https://docs.github.com/en/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-user
Implementation may look something like:
resource "github_organization_role_assignment" "example" {
role_id = 12345
username = "lukiffer"
}resource "github_organization_role_assignment" "example" {
role_id = 12345
team_slug = "example-team"
}It would be great to have these as a single resource that managed the different assignment principals, but if this isn't feasible having separate, explicitly-named resources are probably fine too.
SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
synack-badamson, ardrigh, jazzlyn, tjespers, Anton0 and 14 more
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Type
Projects
Status
In Review