Skip to main content

Managing custom properties for organizations

With custom properties, you can add metadata to organizations in your enterprise and use that metadata to target repositories with rulesets.

Who can use this feature?

Enterprise owners and users with the "Manage the Enterprise's custom properties definitions" permission can add and set a custom property schema at the enterprise level.

Note

Organization custom properties are in public preview and subject to change. For GitHub Enterprise Server, this feature will only be available from version 3.22.

About custom properties

Custom properties are structured metadata fields that you can add to repositories and organizations in GitHub to enable better organization, governance, and automation across your environment. See Custom properties.

This article relates to organization custom properties.

Allowed characters

Custom property names and values may only contain certain characters:

  • Names: a-z, A-Z, 0-9, _, -, $, #
  • Values: All printable ASCII characters except "

Adding custom properties

You can add custom properties to your enterprise and set values for those properties for organizations in your enterprise.

You can also use the REST API to create and manage custom properties for an organization. See Custom properties.

  1. In the top-right corner of GitHub, click your profile picture.

  2. Depending on your environment, click Enterprise, or click Enterprises then click the enterprise you want to view.

  3. Under the enterprise name, click the Organizations tab.

    Screenshot of an enterprise. The "Organizations" tab is highlighted with an orange outline.

  4. In the left sidebar, click Custom properties.

  5. To add a new custom property, click New property in the upper right corner.

  6. In the "Name" field, type the name you'd like to use for your custom property. The name can't contain spaces, and cannot exceed 75 characters in length.

  7. Optionally, in the "Description" field, add a description for the custom property.

  8. Under "Type", select the type of property you'd like to add.

  9. Optionally, select Allow organization actors to set this property to allow organization users and apps with the organization-level "custom properties" fine-grained permission to set and update the property value for their organization.

  10. Optionally, select Require this property for all organizations and add a default value. Enabling this option indicates that you require that all organizations in your enterprise have a value for this property. Organizations that don't have an explicit value for this property will inherit the default value.

  11. Click Save property.

Setting values for organizations in your enterprise

You, and any users with the "Edit custom properties values at the organization level" permission, can set values for custom properties for organizations in your enterprise.

  1. In the top-right corner of GitHub, click your profile picture.

  2. Depending on your environment, click Enterprise, or click Enterprises then click the enterprise you want to view.

  3. Under the enterprise name, click the Organizations tab.

    Screenshot of an enterprise. The "Organizations" tab is highlighted with an orange outline.

  4. In the left sidebar, click Custom properties.

  5. Click the "Set values" tab.

  6. Select one or more organizations from the list and click Edit properties.

  7. In the modal dialog that appears, select a value for each property you'd like to set for the selected organizations.

  8. Click Save changes.