Skip to main content

security_managers

Creates, updates, deletes, gets or lists a security_managers resource.

Overview

Namesecurity_managers
TypeResource
Idgithub.orgs.security_managers

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerUnique identifier of the team
namestringName of the team (example: Justice League)
enterprise_idintegerUnique identifier of the enterprise to which this team belongs
node_idstring (example: MDQ6VGVhbTE=)
organization_idintegerUnique identifier of the organization to which this team belongs
descriptionstringDescription of the team (example: A great team.)
html_urlstring (uri) (example: https://github.com/orgs/rails/teams/core)
ldap_dnstringDistinguished Name (DN) that team maps to within LDAP environment (example: uid=example,ou=users,dc=github,dc=com)
members_urlstring (example: https://api.github.com/organizations/1/team/1/members{/member})
notification_settingstringThe notification setting the team has set (example: notifications_enabled)
permissionstringPermission that the team will have for its repositories (example: admin)
privacystringThe level of privacy this team should have (example: closed)
repositories_urlstring (uri) (example: https://api.github.com/organizations/1/team/1/repos)
slugstring (example: justice-league)
typestringThe ownership type of the team (enterprise, organization)
urlstring (uri)URL for the team (example: https://api.github.com/organizations/1/team/1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_security_manager_teamsselectorg> [!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_teaminsertorg, 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_teamdeleteorg, 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.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
team_slugstringThe slug of the team name.

SELECT examples

> [!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

> [!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 }}'
;

DELETE examples

> [!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
;