Skip to main content

orgs

Overview

Nameorgs
TypeResource
Idgithub.orgs.orgs

Fields

NameDatatype
idinteger
descriptionstring
members_urlstring
repos_urlstring
hooks_urlstring
urlstring
public_members_urlstring
events_urlstring
loginstring
avatar_urlstring
issues_urlstring
node_idstring

Methods

NameAccessible byRequired ParamsDescription
listSELECTLists all organizations, in the order that they were created on GitHub.

Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of organizations.
list_for_userSELECTusernameList public organization memberships for the specified user.

This method only lists public memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the List organizations for the authenticated user API instead.
deleteDELETEorgDeletes an organization and all its repositories.

The organization login will be unavailable for 90 days after deletion.

Please review the Terms of Service regarding account deletion before using this endpoint:

https://docs.github.com/site-policy/github-terms/github-terms-of-service
enable_or_disable_security_product_on_all_org_reposEXECenablement, org, security_productEnables or disables the specified security feature for all eligible repositories in an organization.

To use this endpoint, you must be an organization owner or be member of a team with the security manager role.
A token with the 'write:org' scope is also required.

GitHub Apps must have the organization_administration:write permission to use this endpoint.

For more information, see "Managing security managers in your organization."
updateEXECorgParameter Deprecation Notice: GitHub will replace and discontinue members_allowed_repository_creation_type in favor of more granular permissions. The new input parameters are members_can_create_public_repositories, members_can_create_private_repositories for all organizations and members_can_create_internal_repositories for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the blog post.

Enables an authenticated organization owner with the admin:org scope or the repo scope to update the organization's profile and member privileges.