Skip to content

Commit 5c74f86

Browse files
fix: Drop roles from org SCIM update request body
The PUT /scim/v2/organizations/{org}/Users/{scim_user_id} request body does not accept a roles field. GitHub's OpenAPI description (GHEC, api versions 2022-11-28 and 2026-03-10) defines the request body as an object with only userName, name, displayName, emails, schemas, externalId, groups and active. roles appears only in the enterprise SCIM schemas (/scim/v2/enterprises/...), not the org SCIM endpoints. Drop the Roles field from UpdateProvisionedOrgMembershipRequest so it matches the documented and specified request body.
1 parent 35a1a78 commit 5c74f86

3 files changed

Lines changed: 0 additions & 20 deletions

File tree

‎github/github-accessors.go‎

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎github/github-accessors_test.go‎

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎github/scim.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ type UpdateProvisionedOrgMembershipRequest struct {
172172
Schemas []string `json:"schemas,omitempty"` // (Optional.)
173173
ExternalID *string `json:"externalId,omitempty"` // (Optional.)
174174
Groups []string `json:"groups,omitempty"` // (Optional.)
175-
Roles []*SCIMUserRole `json:"roles,omitempty"` // (Optional, GHES only.)
176175
Active *bool `json:"active,omitempty"` // (Optional.)
177176
}
178177

0 commit comments

Comments
 (0)