security_managers
Creates, updates, deletes, gets or lists a security_managers resource.
Overview
| Name | security_managers |
| Type | Resource |
| Id | github.orgs.security_managers |
Fields
The following fields are returned by SELECT queries:
- list_security_manager_teams
Response
| Name | Datatype | Description |
|---|---|---|
id | integer | Unique identifier of the team |
name | string | Name of the team (example: Justice League) |
enterprise_id | integer | Unique identifier of the enterprise to which this team belongs |
node_id | string | (example: MDQ6VGVhbTE=) |
organization_id | integer | Unique identifier of the organization to which this team belongs |
description | string | Description of the team (example: A great team.) |
html_url | string (uri) | (example: https://github.com/orgs/rails/teams/core) |
ldap_dn | string | Distinguished Name (DN) that team maps to within LDAP environment (example: uid=example,ou=users,dc=github,dc=com) |
members_url | string | (example: https://api.github.com/organizations/1/team/1/members{/member}) |
notification_setting | string | The notification setting the team has set (example: notifications_enabled) |
permission | string | Permission that the team will have for its repositories (example: admin) |
privacy | string | The level of privacy this team should have (example: closed) |
repositories_url | string (uri) | (example: https://api.github.com/organizations/1/team/1/repos) |
slug | string | (example: justice-league) |
type | string | The ownership type of the team (enterprise, organization) |
url | string (uri) | URL for the team (example: https://api.github.com/organizations/1/team/1) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_security_manager_teams | select | org | > [!WARNING] > Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead. | |
add_security_manager_team | insert | org, 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. | |
remove_security_manager_team | delete | org, 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
org | string | The organization name. The name is not case sensitive. |
team_slug | string | The slug of the team name. |
SELECT examples
- list_security_manager_teams
> [!WARNING]
> Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
SELECT
id,
name,
enterprise_id,
node_id,
organization_id,
description,
html_url,
ldap_dn,
members_url,
notification_setting,
permission,
privacy,
repositories_url,
slug,
type,
url
FROM github.orgs.security_managers
WHERE org = '{{ org }}' -- required
;
INSERT examples
- add_security_manager_team
- Manifest
> [!WARNING]
> Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
INSERT INTO github.orgs.security_managers (
org,
team_slug
)
SELECT
'{{ org }}',
'{{ team_slug }}'
;
# Description fields are for documentation purposes
- name: security_managers
props:
- name: org
value: "{{ org }}"
description: Required parameter for the security_managers resource.
- name: team_slug
value: "{{ team_slug }}"
description: Required parameter for the security_managers resource.
DELETE examples
- remove_security_manager_team
> [!WARNING]
> Closing down notice: This operation is closing down and will be removed starting January 1, 2026. Please use the "Organization Roles" endpoints instead.
DELETE FROM github.orgs.security_managers
WHERE org = '{{ org }}' --required
AND team_slug = '{{ team_slug }}' --required
;