githubOrg catalog provider, Backstage automates the creation of User and Group entities based on your organization’s structure.
Overview of Catalog Providers
Backstage supports multiple catalog providers to discover and import entities. Below is a summary of built-in catalog.providers inapp-config.yaml:
githubOrg provider to import organizational data (users and teams) from GitHub.
Integrating GitHub Organizational Data
First, install the GitHub Org backend module:Ensure your workspace is up to date before adding the plugin. This module enables the
githubOrg provider in your Backstage backend.githubOrg provider in app-config.yaml:
index.ts to register the new module:

Defining GitHub and GitHub Org Providers
You can combine the standard GitHub repository-based provider with the GitHub Org provider to pull both code entities and org data:- githubOrg: Imports all users and teams from shopping-hub.
- github: Discovers
catalog-info.yamlin shopping-hub repos to create Component, API, or System entities.

Running and Verifying the Import
Apply your changes by restarting Backstage:
Ensure your GitHub personal access token includes
read:org (and optionally read:user). Without these scopes, Backstage cannot retrieve organizational data.- Go to Settings > Developer settings > Personal access tokens in GitHub.
- Edit or generate a token with read:org and read:user scopes.
- Update the token in Backstage (e.g., via
GITHUB_TOKENenv var) and restart.

User and Group entities:

Links and References
- Backstage Catalog Providers
- GitHub Provider Plugin
- Backstage Authentication Overview
- GitHub Personal Access Token Scopes