Skip to content

[MAINT]: Deprecate github_organization_custom_role and replace with github_organization_custom_repository_role and github_organization_custom_organization_role #2224

Closed

Description

@cailen

Describe the need

Following up on #1069, it appears Github has decided to split custom roles out into two separate types now and was deprecated Sept 6, 2023 (see https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#deprecated---create-a-custom-role).

The current implementation (https://registry.terraform.io/providers/integrations/github/latest/docs/resources/organization_custom_role) I believe should be deprecated and replaced with the following:

Deprecated

  • Resource: github_organization_custom_role
  • Data source: github_organization_custom_role

Replacement

API endpoints found here: https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28
Documentation: https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles
go-github source: https://github.com/google/go-github/blob/master/github/orgs_custom_roles.go

  • Resource: github_organization_custom_repository_role
  • Data source: github_organization_custom_repository_role

New

API endpoints found here: https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28
Documentation: https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles
go-github source: (It looks like this is not supported yet)

  • Resource: github_organization_custom_organization_role
  • Data source: github_organization_custom_organization_role

SDK Version

n/a

API Version

REST 2022-11-28

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Maintenance
    on Apr 10, 2024
  2. changed the title [-][MAINT]: Deprecate github_organization_custom_role and replace with github_organization_custom_repository_role and github_organization_custom_organization_role[/-] [+][MAINT]: Deprecate `github_organization_custom_role` and replace with `github_organization_custom_repository_role` and `github_organization_custom_organization_role`[/+] on Apr 10, 2024
  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Apr 11, 2024
  4. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Apr 15, 2024
  5. lewismiddleton commented on Jul 15, 2024

    @lewismiddleton

    Update: Organization custom role support was added to go-github in google/go-github#3129 which got released in v63.

    I think the custom role change is the only breaking change relevant for this project, the other breaking change being related to listing runners.

    Should this issue be scoped at bumping the go-github package, fixing the custom role breaking API change and implementing the new resources as described?

  6. maikvandergaag commented on Nov 20, 2024

    @maikvandergaag

    When will this be added to the provider?

  7. stevehipwell commented on Nov 29, 2024

    @stevehipwell
    Collaborator

    I would suggest that you don't need the custom part here and can use github_organization_role & github_organization_repository_role. I'm working on the former in 2487 and could potentially pick up the latter in the same PR.

  8. github-actions commented on Aug 27, 2025

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  9. added
    Status: Stale
    on Aug 27, 2025
  10. brmb commented on Aug 27, 2025

    @brmb

    Maybe you have some updates on this @stevehipwell ?

  11. removed
    Status: Stale
    on Aug 28, 2025
  12. stevehipwell commented on Sep 1, 2025

    @stevehipwell
    Collaborator

    Sorry @brmb I have no additional information, th maintainer have been unresponsive for almost a year now.

  13. moved this from Backlog to On Deck in Terraform Provideron Oct 14, 2025
  14. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsType: Maintenance

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions