Skip to content

[Schema Inaccuracy] /orgs/{org}/memberships/{username} returns inactive membership state #7364

Open

Description

@sdwilsh

Schema Inaccuracy

components/schemas/org-membership has state as enum: ["active", "pending"] in descriptions-next/ghec/ghec.2026-03-10.json. The same schema backs GET on that path and /user/memberships/orgs[/{org}]. However, we've observed GitHub returning inactive as well.

Expected

inactive to be present in the schema or not sent to us.

Reproduction Steps

Because this is highly dependent on a user account status and org membership, I don't have a reproduction step that will work for others. I can provide some requests id's, however:

  • C4CC:18C49:6AE436:15B2FDF:6AD40E04 (2026-10-18 00:08:36Z)
  • B108:15F890:102523:348345:6AD3FF17 (2026-10-17 23:04:54Z)
  • 88C8:14BE17:11DD5E:3A3272:6AD3FF5A (2026-10-17 23:06:01Z)
  • E71A:1430B6:AC73D:233F62:6AD2AD97 (2026-10-16 23:05:01Z)

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions