Overview
The GitHub Copilot integration connects your Copilot Business or Copilot Enterprise subscription to G360. G360 then collects Copilot seats, daily usage, pull request activity, and billing from GitHub and shows them on the GitHub Copilot Metrics dashboard. Setup takes about 10 minutes and has six steps:- Find your account type
- Find your enterprise slug (Enterprise only)
- Turn on the Copilot Metrics API
- Create a GitHub token
- Add the connection in G360
- Check that data arrives
Before you start
You need:- An active GitHub Copilot Business or GitHub Copilot Enterprise subscription.
- A GitHub account that is an organization owner, enterprise owner, or billing manager. If you are not, ask one of them to do steps 3 and 4 for you, or to give you the permission.
- Access to G360 as an administrator. Only administrators see Integrations.
Step 1: Find your account type
G360 reads Copilot differently for an organization and for an enterprise, so you must pick the right Account Type.Sign in to GitHub
Open your profile menu
Identify your account type
- If you see Your enterprises and your company’s Copilot seats are managed there, your account type is Enterprise.
- Otherwise, your account type is Business. Your Copilot seats belong to one organization under Your organizations.
Business or Enterprise.
Step 2: Find your enterprise slug (Enterprise only)
Skip this step if your account type is Business. The enterprise slug is the short name of your GitHub Enterprise account. It is part of the enterprise’s web address.Open your enterprises
Open your company's enterprise
Copy the slug
https://github.com/enterprises/<slug>. Copy the part after /enterprises/.https://github.com/enterprises/acme-corp, the slug is acme-corp.
Write down: your enterprise slug.
Step 3: Turn on the Copilot Metrics API
GitHub only shares Copilot usage when an administrator turns this on. You do it once.- Business
- Enterprise
Open your organization
https://github.com/acme.Open settings
Open Copilot policies
Enable the API
Step 4: Create a GitHub token
G360 signs in to GitHub with a Personal Access Token (classic).Open Developer settings
Open Tokens (classic)
Start a new token
Name the token
G360 Copilot.Set the expiration
Select the scope
manage_billing:copilot. Leave everything else unticked.Generate and copy the token
ghp_).Can I use a different scope?
Can I use a different scope?
Step 5: Add the connection in G360
Open the GitHub Copilot integration
Start a new connection
Fill in the fields
Test the connection
- You should see Connection Test Successful — Token is valid and has Copilot access.
- If you see an error at the top of the dialog, go to Troubleshooting, fix it, and click Test Connection again.
Save the connection
- Connection Added — Connection added successfully.
- Project Created — Project “<Connection Name>” was created for this connection and its first sync has started. Daily sync runs at 12:00 AM IST.
- The connection in the Copilot Connections table, with Status Active.
Step 6: Check that data arrives
The first sync starts as soon as you save and collects the last 28 days. It can take a few minutes for a large organization.Open Projects
Check the sync status
Open the dashboard
Select the project
- GitHub publishes each day’s usage the next day, so the newest data is always from yesterday.
- Only members with Copilot telemetry enabled in their IDE appear in usage.
- GitHub does not share developers’ email addresses. New GitHub logins can be matched to an existing person in Users and Teams → User Mappings.
The Copilot Connections page
Edit a connection
Open the connection
Change the fields
Save
- Test Connection in this dialog checks the saved token. A new token is checked when you click Update Connection.
- Renaming changes nothing else.
- A new token for the same organization or enterprise clears the connection’s Copilot data from the dashboard; the next sync loads it again. Seat history is kept.
- A new token must read the same organization or enterprise as the old one. To connect a different one, add a new connection.
- If a sync of this connection is running, the update is refused: A sync of this connection is in progress. Try again when it finishes.
Delete a connection
A connection linked to a project cannot be deleted. Saving a connection links it to its project, so unlink the project first.Delete the connection
Confirm
- G360 stops collecting from that organization or enterprise, and its Copilot data is removed from the dashboards.
- Its sync schedule is removed. Its run history is kept.
- If the connection is still linked to a project, the delete is refused: Cannot delete connection. It is associated with project ‘<name>’. Unlink the project first.
- If a sync of this connection is running, the delete is refused. Wait a few minutes and try again.
- People known to G360 only through this connection are marked inactive. They become active again automatically if any connected source sees them again.
How syncing works
- The first sync starts when you save the connection and collects the last 28 days. After that, G360 syncs every day at 12:00 AM IST.
- Each sync collects every new day up to yesterday and fills in any day of the last 28 that was missed, so a failed or skipped sync heals itself.
- If GitHub rate-limits G360 briefly, the sync waits and continues. If the limit lasts longer, the sync stops and the next sync collects the missed days.
- If GitHub is down, or the token expired or was revoked, the sync stops and shows the reason. Replace the token if needed; the next sync collects the missed days.
Troubleshooting
Test Connection fails
Test Connection fails
- The token was copied completely (use the eye icon), has no spaces before or after it, and has not expired.
- The token has the
manage_billing:copilotscope (orread:org/read:enterprise). - The GitHub account that created the token is an organization owner, enterprise owner, or billing manager.
- Business only: the account manages Copilot in exactly one organization. Multiple orgs found with Copilot access means it manages several; use a token from an account that manages only the one you want.
- Enterprise only: see the note in step 5.
Save fails with "Token validation failed"
Save fails with "Token validation failed"
- Account Type matches step 1.
- Enterprise only: the Enterprise Slug matches the address
github.com/enterprises/<slug>exactly. - Click Test Connection to see the reason, and work through the checks above.
Save fails because something already exists
Save fails because something already exists
- Key with name … already exists: another connection uses this Connection Name. Choose a different name.
- A project named … already exists: a G360 project already has this name. Choose a different Connection Name.
- A connection with this token already exists: another connection uses this token.
- A connection for … already exists: another connection already reads this organization or enterprise. Each organization or enterprise can have only one connection; edit the existing one instead.
Update or delete is refused because a sync is running
Update or delete is refused because a sync is running
Delete is refused because the connection is associated with a project
Delete is refused because the connection is associated with a project
The dashboard shows no data
The dashboard shows no data
- Wait for the first sync to finish (Sync Status in Projects shows Succeeded).
- Remember the newest data is from yesterday.
- Check the project selected in the Project filter is the one created for the connection, or pick All.
- Check the Copilot Metrics API is still enabled (step 3). Another administrator can turn it off without G360 being told.
- Check the organization or enterprise has at least 5 active Copilot users, and that members have Copilot telemetry enabled in their IDE.
- Check the token has not expired.
Best practices
- Create the token from a dedicated administrator account rather than a personal one.
- Give the token only the
manage_billing:copilotscope (or the read-only alternative). - Replace the token before it expires.
- Name connections after the organization or enterprise they read.
- Check now and then that the Copilot Metrics API is still enabled.

