| layout | github |
|---|---|
| page_title | GitHub: github_organization |
| description | Get an organization. |
Use this data source to retrieve basic information about a GitHub Organization.
data "github_organization" "example" {
name = "github"
}If name is omitted, the provider's configured owner is used:
data "github_organization" "example" {}name- (Optional) The name of the organization. Defaults to the provider's configuredowner.ignore_archived_repos- (Optional) Whether or not to include archived repos in therepositorieslist. Defaults tofalse.summary_only- (Optional) Exclude the repos, members and other attributes from the returned result. Defaults tofalse.
id- The ID of the organizationnode_id- GraphQL global node ID for use with the v4 APIname- The organization's public profile nameorgname- The organization's name as used in URLs and the APIlogin- The organization account logindescription- The organization account descriptionplan- The organization account plan namerepositories- (list) A list of the full names of the repositories in the organization formatted asowner/namestringsmembers- Deprecated: useusersinstead by replacinggithub_organization.example.memberstogithub_organization.example.users[*].loginwhich will give you the same value, expect this field to be removed in next major versionusers- (list) A list with the members of the organization with following fields:id- The ID of the memberlogin- The members loginemail- Publicly available emailrole- Member roleADMIN,MEMBER
two_factor_requirement_enabled- Whether two-factor authentication is required for all members of the organization.default_repository_permission- Default permission level members have for organization repositories.members_allowed_repository_creation_type- The type of repository allowed to be created by members of the organization. Can be one ofALL,PUBLIC,PRIVATE,NONE.members_can_create_repositories- Whether non-admin organization members can create repositories.members_can_create_internal_repositories- Whether organization members can create internal repositories.members_can_create_private_repositories- Whether organization members can create private repositories.members_can_create_public_repositories- Whether organization members can create public repositories.members_can_create_pages- Whether organization members can create pages sites.members_can_create_public_pages- Whether organization members can create public pages sites.members_can_create_private_pages- Whether organization members can create private pages sites.members_can_fork_private_repositories- Whether organization members can create private repository forks.web_commit_signoff_required- Whether organization members must sign all commits.advanced_security_enabled_for_new_repositories- Whether advanced security is enabled for new repositories.dependabot_alerts_enabled_for_new_repositories- Whether Dependabot alerts is automatically enabled for new repositories.dependabot_security_updates_enabled_for_new_repositories- Whether Dependabot security updates is automatically enabled for new repositories.dependency_graph_enabled_for_new_repositories- Whether dependency graph is automatically enabled for new repositories.secret_scanning_enabled_for_new_repositories- Whether secret scanning is automatically enabled for new repositories.secret_scanning_push_protection_enabled_for_new_repositories- Whether secret scanning push protection is automatically enabled for new repositories.