Question 16
Question#16Topic1
What type of information can you retrieve through GitHub Copilot Business Subscriptions via REST API? Each correct answer presents part of the solution. (Choose two.)
Show answer and explanation
Answer
Explanation
The two correct answers are:
B. List all GitHub Copilot seat assignments for an organization 🎟️
C. Get a summary of GitHub Copilot usage for organization members 📊
REST API Copilot Endpoints
The GitHub Copilot REST API is divided into two main categories: Copilot User Management and Copilot Metrics.
1. Copilot User Management (Seat Assignments)
The REST API provides endpoints to manage who has access to a Copilot license (seat) within an organization.
List all GitHub Copilot seat assignments for an organization (B): This allows administrators to retrieve a list of all users who currently have an active Copilot license assigned to them.
Other Actions: The API also allows for adding and removing users or teams from the Copilot subscription.
2. Copilot Metrics (Usage Summary)
The REST API includes endpoints for Copilot metrics, allowing administrators to monitor adoption and activity.
Get a summary of GitHub Copilot usage for organization members (C): This allows administrators to retrieve data for the last 100 days, including:
Numbers of active users and engaged users.
Breakdowns of usage by language and IDE.
This provides a high-level summary of how the Copilot investment is being utilized.
Why A and D are Incorrect
A. View code suggestions for a specific user: The API provides metrics about usage (e.g., number of completions accepted), but it does not allow for retrieving the actual content of code suggestions given to a specific user. This is a privacy-sensitive area and is not exposed via the management API.
D. List of all unsubscribed GitHub Copilot members within an organization: The API focuses on the active seats and usage metrics. While you can infer who is not assigned a seat by comparing the seat assignments list (B) with the total organization member list, there is no single, dedicated API endpoint to list only "unsubscribed" members.