You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DisplayName*string`json:"displayName,omitempty"`// Human-readable name for a group.
34
34
Members []*SCIMEnterpriseDisplayReference`json:"members,omitempty"`// List of members who are assigned to the group in SCIM provider
35
-
ExternalID*string`json:"externalId,omitempty"`// This identifier is generated by a SCIM provider. Must be unique per user.
35
+
ExternalID*string`json:"externalId,omitempty"`// This identifier is generated by a SCIM provider. Must be unique per group.
36
+
Schemas []string`json:"schemas,omitempty"`// The URIs that are used to indicate the namespaces of the SCIM schemas.
36
37
// Bellow: Only populated as a result of calling UpdateSCIMGroupAttribute:
37
-
Schemas []string`json:"schemas,omitempty"`// The URIs that are used to indicate the namespaces of the SCIM schemas.
38
-
ID*string`json:"id,omitempty"`// The internally generated id for the group object.
39
-
Meta*SCIMEnterpriseMeta`json:"meta,omitempty"`// The metadata associated with the creation/updates to the group.
38
+
ID*string`json:"id,omitempty"`// The internally generated id for the group object.
39
+
Meta*SCIMEnterpriseMeta`json:"meta,omitempty"`// The metadata associated with the creation/updates to the group.
40
40
}
41
41
42
42
// SCIMEnterpriseDisplayReference represents a JSON SCIM (System for Cross-domain Identity Management) resource reference.
43
43
typeSCIMEnterpriseDisplayReferencestruct {
44
44
Valuestring`json:"value"`// The local unique identifier for the member (e.g., user ID or group ID).
45
-
Refstring`json:"$ref"`// The URI reference to the member resource (e.g., https://api.github.com/scim/v2/Users/{id}).
45
+
Ref*string`json:"$ref,omitempty"`// The URI reference to the Members or Groups resource (e.g., /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}).
46
46
Display*string`json:"display,omitempty"`// The display name associated with the member (e.g., user name or group name).
47
47
}
48
48
@@ -337,6 +337,50 @@ func (s *EnterpriseService) UpdateSCIMUserAttribute(ctx context.Context, enterpr
337
337
returnuser, resp, nil
338
338
}
339
339
340
+
// ProvisionSCIMGroup creates a SCIM group for an enterprise.
341
+
//
342
+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim#provision-a-scim-enterprise-group
343
+
//
344
+
//meta:operation POST /scim/v2/enterprises/{enterprise}/Groups
0 commit comments