Skip to content

Commit 475cfd8

Browse files
authored
Merge pull request #36418 from github/repo-sync
Repo sync
2 parents e5a614e + 2ac8efd commit 475cfd8

File tree

7 files changed

+74
-2
lines changed

7 files changed

+74
-2
lines changed

content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/granting-access-to-copilot-for-members-of-your-organization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ Billing for {% data variables.product.prodname_copilot %} starts when you grant
7878

7979
You can use {% data variables.product.prodname_dotcom %}'s REST API to grant access to {% data variables.product.prodname_copilot %} for teams, or specific users, in your organization. See [Add teams to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-teams-to-the-copilot-subscription-for-an-organization) and [Add users to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-users-to-the-copilot-subscription-for-an-organization).
8080

81+
{% data reusables.copilot.self-serve-license-link %}
82+
8183
## Further reading
8284

8385
* [{% data variables.product.prodname_copilot %} Trust Center](https://resources.github.com/copilot-trust-center)

content/copilot/rolling-out-github-copilot-at-scale/analyzing-usage-over-time-with-the-copilot-metrics-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Analyzing usage over time with the Copilot metrics API
3-
shortTitle: Copilot metrics API
3+
shortTitle: Analyze usage over time
44
intro: 'Learn how to connect to the API, store data, and analyze usage trends.'
55
versions:
66
feature: copilot

content/copilot/rolling-out-github-copilot-at-scale/driving-copilot-adoption-in-your-company.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Depending on the size of your organization, you may want to start with a small p
3030

3131
You can start by identifying a small number of teams that are interested in using {% data variables.product.prodname_copilot_short %}. You can then work with these teams to help them get started with {% data variables.product.prodname_copilot_short %}.
3232

33+
{% data reusables.copilot.self-serve-license-link %}
34+
3335
## Supporting users setting up their environment
3436

3537
Once your teams have access to {% data variables.product.prodname_copilot %}, ensure they're confident with setting up their environment. {% data variables.product.github %} provides comprehensive documentation to help users set up their environment and resolve common issues. See [AUTOTITLE](/copilot/setting-up-github-copilot/setting-up-github-copilot-for-yourself) and [AUTOTITLE](/copilot/troubleshooting-github-copilot).

content/copilot/rolling-out-github-copilot-at-scale/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ topics:
88
- Copilot
99
children:
1010
- /driving-copilot-adoption-in-your-company
11+
- /setting-up-a-self-serve-process-for-github-copilot-licenses
1112
- /analyzing-usage-over-time-with-the-copilot-metrics-api
1213
- /reminding-inactive-users
1314
---
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Setting up a self-serve process for GitHub Copilot licenses
3+
shortTitle: Self-serve licenses
4+
intro: 'Learn how users can request a license and receive access immediately.'
5+
versions:
6+
feature: copilot
7+
topics:
8+
- Copilot
9+
---
10+
11+
When you've enabled {% data variables.product.prodname_copilot %} in an organization or enterprise, you can set up a self-serve workflow to allow users to request licenses. This allows you to allocate licenses to people who want them, and means people can get started with {% data variables.product.prodname_copilot_short %} quickly.
12+
13+
{% data variables.product.company_short %} has found that many successful rollouts offer a fully self-service model where developers can claim a license without approval.
14+
15+
This article outlines two approaches your company can take:
16+
17+
* {% data variables.product.github %}'s **request access** feature for {% data variables.product.prodname_copilot_business_short %}, which requires no setup but does require explicit approvals from an administrator
18+
* Your own integration with **{% data variables.product.github %}'s API**, which allows you to create your own process with instant access
19+
20+
## Approach 1: Use {% data variables.product.github %}'s "request access" feature
21+
22+
If you have a {% data variables.product.prodname_copilot_business_short %} subscription, members of an organization can request access to {% data variables.product.prodname_copilot %} on their settings page. Then, an organization owner must review and approve each request.
23+
24+
The process, which you should **communicate with users**, is as follows.
25+
26+
1. An organization or enterprise owner ensures {% data variables.product.prodname_copilot_business_short %} is enabled in the organization where you want to manage access.
27+
1. Members of the organization go to their personal settings page at https://github.com/settings/copilot and click **Ask admin for access**.
28+
1. An organization owner reviews and approves requests on the "Requests from members" page in the organization. See [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/managing-requests-for-copilot-business-in-your-organization).
29+
30+
You should set up a process where requests are reviewed regularly, so that interested users can get access to {% data variables.product.prodname_copilot_short %} quickly.
31+
32+
Users can also request access from organizations where {% data variables.product.prodname_copilot_business_short %} is not enabled. In this case, organization owners will be prompted to ask an enterprise owner to enable {% data variables.product.prodname_copilot_short %} for the organization.
33+
34+
## Approach 2: Integrate with the API
35+
36+
For a more streamlined approach, you can set up a self-serve process by integrating with {% data variables.product.github %}'s API. The benefits of this approach are that it allows you to build the process into your existing tooling, and it gives you the option to allow users to receive access instantly, without a manual approval process.
37+
38+
To set up the integration, you will use the [Add users to the {% data variables.product.prodname_copilot_short %} subscription for an organization](/rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization) endpoint, providing the username of the user who has requested access.
39+
40+
For example, the API call in a {% data variables.product.prodname_actions %} workflow might look as follows, where the organization and selected usernames are provided by the context of the workflow trigger:
41+
42+
``` javascript
43+
const { Octokit } = require("@octokit/action");
44+
const octokit = new Octokit();
45+
const response = await octokit.request('POST /orgs/{org}/copilot/billing/selected_users', {
46+
org: context.repo.owner,
47+
selected_usernames: [context.payload.sender.login],
48+
headers: {
49+
'X-GitHub-Api-Version': '2022-11-28'
50+
}
51+
})
52+
```
53+
54+
>[!NOTE] This endpoint only works if you use organizations on {% data variables.product.github %}. If {% data variables.product.company_short %} has provided you with a **dedicated enterprise for managing {% data variables.product.prodname_copilot_business_short %} licenses**, you will need to add users to enterprise teams instead. To request API documentation, please contact your account manager.
55+
56+
### Example implementations
57+
58+
* You could create the process entirely within {% data variables.product.github %}, having users create issues to request access, then using a {% data variables.product.prodname_actions %} workflow to call the API. For a demo of this approach, see the [microsoft/GitHubCopilotLicenseAssignment](https://github.com/microsoft/GitHubCopilotLicenseAssignment) repository. Note that this is **an external example that isn't covered by {% data variables.contact.github_support %}**.
59+
* You could add a "Request access" button to users' profiles on your company's internal website, which will pass the user's {% data variables.product.github %} username to the API. You could grant access instantly or validate the user first, such as checking for their membership of a certain team.
60+
61+
## Further reading
62+
63+
* [AUTOTITLE](/copilot/rolling-out-github-copilot-at-scale/driving-copilot-adoption-in-your-company)
64+
* [AUTOTITLE](/copilot/rolling-out-github-copilot-at-scale/reminding-inactive-users)
65+
* [AUTOTITLE](/copilot/rolling-out-github-copilot-at-scale/analyzing-usage-over-time-with-the-copilot-metrics-api)
66+
* [AUTOTITLE](/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/managing-requests-for-copilot-business-from-organizations-in-your-enterprise){% ifversion fpt %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %}

content/copilot/setting-up-github-copilot/setting-up-github-copilot-for-your-organization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Enable {% data variables.product.prodname_copilot_short %} for some or all membe
3737

3838
To help drive adoption of {% data variables.product.prodname_copilot_short %} in your organization, think about what teams or members are most excited about {% data variables.product.prodname_copilot_short %} or could benefit the most from {% data variables.product.prodname_copilot_short %}. You may want to enable {% data variables.product.prodname_copilot_short %} for those members before enabling {% data variables.product.prodname_copilot_short %} for your whole organization. This can help you discover blockers, demonstrate early success, and set your organization up for a successful {% data variables.product.prodname_copilot_short %} rollout.
3939

40-
Alternatively, you can set up a self-serve workflow using the API. See [Add teams to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-teams-to-the-copilot-subscription-for-an-organization) and [Add users to the Copilot subscription for an organization](/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-users-to-the-copilot-subscription-for-an-organization) in the REST API documentation.
40+
{% data reusables.copilot.self-serve-license-link %}
4141

4242
If your organization is part of an enterprise on {% data variables.enterprise.data_residency_site %}, users must perform some additional setup to authenticate to their account from their development environment. See [AUTOTITLE](/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom).
4343

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% data variables.product.company_short %} has found that many successful rollouts offer a fully self-service model where developers can claim a license without approval. To learn about options for setting up this process, see [AUTOTITLE](/copilot/rolling-out-github-copilot-at-scale/setting-up-a-self-serve-process-for-github-copilot-licenses).

0 commit comments

Comments
 (0)