Back to Blog

    Engineering

    How does GitHub Copilot access Microsoft 365 data?

    Agent skills provide instructions, not data access. That needs a separate integration with Microsoft Graph, Entra ID and least-privilege permissions.

    January 19, 20262 min read
    Marcel Haas

    Marcel Haas

    Solution Architect, CEO

    marcel.haas@cnext.ch
    CNEXT SharePoint
    In this article

    A GitHub Copilot agent skill is a folder of instructions and optional resources. It does not automatically give Copilot access to SharePoint, Teams, Planner or Outlook. Data access requires a separate application or MCP server that calls a supported API, authenticates with Microsoft Entra ID and returns results only within the permissions granted.

    Separate instructions from actions

    A typical architecture consists of the Copilot client, an explicitly provided tool or MCP server, a Microsoft Graph API and a reviewed response. The skill file can explain when to use the tool and how to present results. It replaces neither the API client nor authentication, authorisation, consent and error handling.

    Microsoft Graph, for example, offers a DriveItem search within a specific drive or site hierarchy. The documented search function uses an endpoint such as /sites/{site-id}/drive/root/search(q='…'); permissions differ for delegated and application access, and this endpoint does not support the Sites.Selected application permission. For Teams messages and meeting transcripts, Microsoft specifies separate consents and application policies, some of them administrative.

    Grant only the access required

    Start with a single site and read-only access. For each endpoint, choose the documented least-privileged permission; check whether it is granted as delegated or application access and whether admin consent is required. Avoid broad Sites.Read.All or message permissions when the integration can work with narrower access. Limit queries, page size and returned fields, and do not pass sensitive results into prompts or logs unnecessarily.

    Test in your own environment

    Microsoft Graph endpoints and permissions vary by resource and national cloud. Verify the endpoint, SDK syntax, tenant consent and user access with a test account. Teams transcripts are available only for supported meetings and under documented conditions. Do not send meeting or message content to Copilot until the people affected, retention and purpose have been clarified.

    Sources: GitHub: agent skills · Microsoft Graph: search for files · Microsoft Graph: channel messages and permissions · Microsoft Graph: meeting transcripts · Microsoft Graph: Selected permissions

    GitHub CopilotSharePointMicrosoft 365Schweiz
    Teilen:

    AI tools may have supported the creation of this article. CNEXT is responsible for the published content. Product features and prices can change; check the linked primary sources for current details.

    Marcel Haas

    Marcel Haas

    Solution Architect, CEO

    6x Microsoft Applied Skills

    Discuss a Copilot integration with CNEXT

    Talk to us about starting with a single site and read-only access.