Use the REST API to manage security managers in an organization.
The security manager role is an organization-level role that organization owners can assign to any member or team in the organization. When applied, it gives permission to view security alerts and manage settings for security features across your organization, as well as read permission for all repositories in the organization.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /orgs/{org}/security-managers
Warning
Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
accept (string)application/vnd.github+json is recommended.org (string) (required)Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/security-managers
Response schema (Status: 200):
Array of Team Simple:
id: required, integernode_id: required, stringurl: required, string, format: urimembers_url: required, stringname: required, stringdescription: required, string or nullpermission: required, stringprivacy: stringnotification_setting: stringhtml_url: required, string, format: urirepositories_url: required, string, format: urislug: required, stringldap_dn: stringtype: required, string, enum: enterprise, organizationorganization_id: integerenterprise_id: integerPUT /orgs/{org}/security-managers/teams/{team_slug}
Warning
Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
team_slug (string) (required)
The slug of the team name.
Request:
curl -L \
-X PUT \
https://api.github.com/orgs/ORG/security-managers/teams/TEAM_SLUG
Response schema (Status: 204):
DELETE /orgs/{org}/security-managers/teams/{team_slug}
Warning
Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
team_slug (string) (required)
The slug of the team name.
Request:
curl -L \
-X DELETE \
https://api.github.com/orgs/ORG/security-managers/teams/TEAM_SLUG
Response schema (Status: 204):