Skip to content

Update-GitHubOrganization

SYNOPSIS

Update an organization

SYNTAX

Update-GitHubOrganization [-Name] <String> [[-BillingEmail] <String>] [[-Company] <String>] [[-Email] <String>]
 [[-TwitterUsername] <String>] [[-Location] <String>] [[-NewName] <String>] [[-Description] <String>]
 [[-HasOrganizationProjects] <Boolean>] [[-HasRepositoryProjects] <Boolean>]
 [[-DefaultRepositoryPermission] <String>] [[-MembersCanCreateRepositories] <Boolean>]
 [[-MembersCanCreateInternalRepositories] <Boolean>] [[-MembersCanCreatePrivateRepositories] <Boolean>]
 [[-MembersCanCreatePublicRepositories] <Boolean>] [[-MembersCanCreatePages] <Boolean>]
 [[-MembersCanCreatePublicPages] <Boolean>] [[-MembersCanCreatePrivatePages] <Boolean>]
 [[-MembersCanForkPrivateRepositories] <Boolean>] [[-WebCommitSignoffRequired] <Boolean>] [[-Blog] <String>]
 [[-SecretScanningPushProtectionEnabledForNewRepositories] <Boolean>]
 [[-SecretScanningPushProtectionCustomLinkEnabled] <Boolean>]
 [[-SecretScanningPushProtectionCustomLink] <String>] [[-Context] <Object>]
 [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

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

EXAMPLES

EXAMPLE 1

Update-GitHubOrganization -Organization 'GitHub' -Blog 'https://github.blog'

Sets the blog URL for the organization 'GitHub' to 'https://github.blog'.

EXAMPLE 2

$param = @{
    Organization                         = 'GitHub'
    MembersCanCreatePublicRepositories   = $true
    MembersCanCreatePrivateRepositories  = $true
    MembersCanCreateInternalRepositories = $true
}
Update-GitHubOrganization @param

Sets the repository creation permissions for the organization 'GitHub' to allow all members to create public, private, and internal repositories.

PARAMETERS

-Name

The organization name. The name is not case sensitive.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-BillingEmail

Billing email address. This address is not publicized.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Company

The company name.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Email

The publicly visible email address.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-TwitterUsername

The Twitter username of the company.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Location

The location.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-NewName

The shorthand name of the company.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Description

The description of the company.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 8
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-HasOrganizationProjects

Whether an organization can use organization projects.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 9
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-HasRepositoryProjects

Whether repositories that belong to the organization can use repository projects.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 10
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DefaultRepositoryPermission

Default permission level members have for organization repositories.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 11
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreateRepositories

Whether of non-admin organization members can create repositories. Note: A parameter can override this parameter. See members_allowed_repository_creation_type in this table for details.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 12
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreateInternalRepositories

Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "Restricting repository creation in your organization" in the GitHub Help documentation.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 13
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreatePrivateRepositories

Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "Restricting repository creation in your organization" in the GitHub Help documentation.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 14
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreatePublicRepositories

Whether organization members can create public repositories, which are visible to anyone. For more information, see 'Restricting repository creation in your organization' in the GitHub Help documentation.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 15
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreatePages

Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 16
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreatePublicPages

Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 17
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanCreatePrivatePages

Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 18
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MembersCanForkPrivateRepositories

Whether organization members can fork private organization repositories.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 19
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WebCommitSignoffRequired

Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 20
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Blog

Path to the organization's blog.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 21
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SecretScanningPushProtectionEnabledForNewRepositories

Whether secret scanning push protection is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 22
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SecretScanningPushProtectionCustomLinkEnabled

Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 23
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

If secret_scanning_push_protection_custom_link_enabled is true, the URL that will be displayed to contributors who are blocked from pushing a secret.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 24
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Context

The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 25
Default value: (Get-GitHubContext)
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

GitHubOrganization

OUTPUTS

GitHubOrganization

NOTES

https://psmodule.io/GitHub/Functions/Organization/Update-GitHubOrganization

[Update an organization](https://docs.github.com/rest/orgs/orgs#update-an-organization)