Setup by tab
Open Integrations → Microsoft 365 and complete the tabs in this order. A connected credential test confirms the app identity. Each source still needs its own permissions and, where applicable, a Microsoft license or user role.
Forge refreshes connected sources automatically. Review Sources for collection
state and Purview (DSPM) for imported labels and observed resources. An access
error on one source does not authorize the other sources or complete their setup.
Sources
Non-AI Teams and package rows are filtered rather than presented as agent
inventory.
Copilot Studio source contributions
Enable each source needed for your agents. Access to one source does not grant access to the others.
A configured MCP binding and a server’s advertised tool catalog are different
records. Neither proves that an agent invoked every advertised tool. A knowledge
reference identifies a configured source; reading its document body requires
separate access. A missing definition, unresolved person or partial source result
does not establish that the agent has no such configuration.
Inspect collected configuration
Open Inventory, select an agent, then open Configuration to inspect its collected instructions, models, tools, connectors and declared memory settings. Configuration content comes from Microsoft source records. Memory settings are shown only when supplied; conversation history is not treated as agent memory. MCP connector wrappers can be discovered without a complete tool catalog. Enable MCP catalogs under Sources to collect remote tool definitions for declared Studio servers. Forge shows tool schemas only when Microsoft supplies them. Tool details present supplied parameters and requirements as readable fields. The tool list loads every collected tool automatically. Prompts and responses from actual conversations appear separately in Live → Sessions. Microsoft conversations use the same Telemetry and Replay views and session content-access settings as other chats. When session approval is enabled, request access once for the session; there is no separate Microsoft content approval workflow. For owners, creators, and modifiers, Forge first uses names included in readable Dataverse bot records. If Microsoft omits a name, a targeted User or Team lookup requires the corresponding table Read privilege. Entra principals resolve through the integration’s scoped directory records. These identity namespaces remain distinct unless Microsoft provides an explicit mapping.Session API compatibility
Microsoft messages now return authorized text in the standardSessionMessage.content
parts, using the same Session permissions and temporary access as other providers.
Clients must read those parts instead of the removed protectedContent field or
Microsoft-specific content-access endpoints and models. Update generated clients
with the API and console release. The obsolete provider-specific API is removed
without a compatibility layer; encrypted evidence and historical access records
remain retained.
Authorize MCP catalogs
- In the Forge Entra app, add the Agent Tools delegated permission
McpServersMetadata.Read.Alland grant tenant admin consent. - In Sources → MCP catalogs, select Authorize MCP catalog and sign in with the Microsoft account used for this integration.
- For each configured server, add and consent to delegated
Tools.ListInvoke.Allon the server API identified in source details. Use the reported API audience; this is not a Microsoft Graph permission. - Review Sources, then inspect the agent and MCP server in Inventory.
Tools.ListInvoke.All.
Forge’s catalog collector uses it to list definitions. The metadata scope alone
does not authorize tool listing on every server. See
Microsoft’s per-server MCP permission model.
Authentication
The base connection uses an Entra tenant ID, application client ID, and client secret. Additional Microsoft surfaces require separate delegated or environment-scoped authorization:
Grant only the read lanes needed initially. Package mutation and provider
response actions should be authorized separately.
Add API permissions
Permissions with similar names are spread across multiple Entra APIs. Select the API shown below rather than searching only inside Microsoft Graph:
Find Microsoft Threat Protection and Power Platform API under APIs my
organization uses in Entra. Grant tenant admin consent after reviewing the
permissions. For Microsoft Graph Application permissions, use a Privileged
Role Administrator or a custom directory role authorized to consent to the
requested application permissions. Application Administrator and Cloud
Application Administrator cannot consent to Microsoft Graph application roles.
See Microsoft tenant-wide consent requirements.
AdvancedHunting.Read.All is a legacy fallback and is not required
when Microsoft Graph ThreatHunting.Read.All works for the tenant.
Native Microsoft 365 Copilot exports require a valid Microsoft 365 Copilot
license with the Microsoft Copilot with Graph-grounded chat service plan.
See Microsoft export prerequisites.
The export schema identifies prompts and responses, not tool-call events;
see the Microsoft interaction schema.
Copilot Studio conversations use the separate Dataverse transcript setup below.
A denied user export does not stop other users. The source remains degraded
while per-user failures persist, with continuation and retries scheduled separately.
Explicit user-license denials are checked again hourly without discarding the
pending page. After you assign an eligible license, collection resumes on the
next eligible retry; scheduler workload and provider backoff can delay that check.
User.Read.All is required for native Copilot user discovery. Other inventory
lanes may need Group.Read.All, Directory.Read.All, or Application.Read.All
to resolve their selected users, groups or applications. Grant those additional
permissions only for the enabled lanes that need them.
Forge’s package-catalog authorization currently requests
CopilotPackages.ReadWrite.All because the same lane supports package lifecycle
actions. Do not enable that lane for a read-only pilot that cannot approve this
scope. Forge never performs a package mutation without a separate action request
and exact target confirmation.
Microsoft documents CopilotPackages.Read.All for API reads with delegated or
application permission, but that does not change Forge’s requested scope. The
Package Management API also requires a Microsoft Agent 365 license. See
Microsoft package API permissions and prerequisites.
The Power Platform scopes are defined in Microsoft’s
permission reference.
After adding a delegated scope, grant admin consent and authorize that lane again
in Forge so the saved authorization includes the new scope.
Create the Entra app registration
If your organization does not already have a dedicated Forge app registration:- In the Microsoft Entra admin center, open App registrations under Entra ID, then select New registration.
-
Enter a recognizable name, such as
Forge (<organization name>). - Select Accounts in this organizational directory only (Single tenant). Forge binds the connection to the tenant you enter during setup.
-
Under Redirect URI, select Web and enter:
If you use another Forge Console environment, replace
https://console.forge.aiwith that Console’s origin. The Console setup help displays the exact environment-specific value. - Select Register. Package catalog, Copilot policy, and Power Platform delegated authorization all share this callback. Do not add package-specific callback URLs.
- On Overview, copy Application (client) ID and Directory (tenant) ID. Do not use the Object ID or tenant display name.
- Open Certificates & secrets → Client secrets, create a client secret, and copy its Value immediately. Microsoft only displays the value once; do not copy the Secret ID or put the value in chat, tickets, or screenshots.
Setup
- In Entra, open Overview under Entra ID to find the tenant ID.
- Save the Entra tenant and app credentials under Integrations → Microsoft 365.
- To scope Studio inline protection to one environment, open Manage → Environments in the Power Platform admin center and copy its Environment ID from Details. This ID is optional for collection; inventory and transcripts discover accessible environments.
- Select Test credentials. Forge performs a live Microsoft application token exchange; Connected proves the tenant, client ID, and client secret authenticate, but does not prove that every optional API permission, license, or delegated lane is available.
-
Open Sources and review each source state:
connected,permission_missing,license_missing,preview_unavailable,pending, ordegraded. The source-level result identifies permissions or licenses that are not covered by the base credential test. - Authorize the package catalog, Copilot policy, and Power Platform lanes individually as required. Package catalog and Copilot policy both use Microsoft Graph, but Forge keeps their optional grants, stored authorization, health, and revocation independent. Power Platform uses a separate API audience. Defender and the other app-only lanes use permissions and tenant admin consent on the Entra application; they do not have a separate delegated authorization button in Forge.
-
Optional: to import rich Copilot Studio configuration or transcript-backed
sessions, add the Forge service principal as an application user in each
Dataverse environment in scope:
- In the Power Platform admin center, open Manage → Environments, select the environment, then open Settings → Users + permissions → Application users → New app user.
- Select the same Entra app whose Application (client) ID is saved in Forge, select the environment’s business unit, and assign a dedicated security role.
- Give that role organization-level Read access for the capabilities you
enable. Studio sessions alone require only
conversationtranscripts. Rich Copilot Studio inventory requiresbots,botcomponents,workflows,connectors,connectionreferences,environmentvariabledefinitions,appmodules, andmsdyn_aimodels. Enable both capabilities with all nine table reads. Do not add SharePoint table privileges or create, write, or delete access. Verify the effective role privileges after saving. Dataverse can add default SharePoint privileges to a new role. If the editor retains unrelated defaults, remove them with Microsoft’s RemovePrivilegeRole action.
- Open Sources to review source health, last successful checks and access requirements. Forge collects data automatically. After updating access in Microsoft, return to Connection and select Save to check sources and import Purview labels again. Keep the existing values and leave the secret blank to retain the saved secret. Each source becomes ready independently.
-
Configure the Entra trust used by Copilot Studio external threat detection.
The least-privilege path is manual:
- In the Forge app registration, open Expose an API and set the
Application ID URI to the origin of the Forge protection endpoint
(for example,
https://api.forge.ai). - Open Certificates & secrets → Federated credentials → Add credential.
- Select Other issuer and Explicit subject identifier.
- Copy the exact Issuer and Subject generated by the Forge Protection
guide. Use audience
api://AzureADTokenExchange, nameforge-copilot-protection, and descriptionForge Copilot Studio external threat detection endpoint. Forge can automate these two app-registration changes only when the app has Microsoft GraphApplication.ReadWrite.Allapplication permission with tenant admin consent. That broad write permission is not required for manual setup. A newly added federated credential can take several minutes to propagate. If Power Platform initially returnsAADSTS70025, confirm the credential appears on the intended Application (client) ID, wait, and retry before changing its values.
- In the Forge app registration, open Expose an API and set the
Application ID URI to the origin of the Forge protection endpoint
(for example,
- Configure Copilot Studio external threat detection under Power Platform admin center → Security → Threat detection → Additional threat detection. Select the environment, choose Set up, enable provider sharing, enter the Forge Entra app ID and exact protection endpoint, choose the one-second error behavior, and save.
- Run a published generative-orchestration agent that invokes a tool and verify an authentic callback before enabling that protection path on additional environments. The setting is per environment; Microsoft currently provides no tenant-wide rollout. Test every tool you rely on for blocking because Microsoft decides which tool invocations call the external threat-detection provider; a callback from one tool does not establish coverage for other tools.
Remote MCP catalogs
Complete the basic Power Platform setup first. Add Dataverse configuration reads if the basic inventory does not supply the agent’s declared MCP server binding. This optional setup collects tool definitions for those declared Studio servers. It does not grant every agent access to every discovered server.- In the Forge Entra app, open API permissions → Add a permission → APIs my
organization uses. Find Agent Tools by application ID
ea9ffc3e-8a23-4a7d-836d-234d7c7565c1. Add delegatedMcpServersMetadata.Read.Alland grant admin consent. - In Forge, open Integrations → Microsoft 365 → Sources and choose Authorize MCP catalog. Sign in with the Microsoft account used for this integration. Forge stores delegated metadata authorization and enables catalog collection.
- If source details report a missing tools permission, copy the server API
application ID from that message. In the same Forge Entra app, add delegated
Tools.ListInvoke.Allfor that API and grant admin consent. Repeat only for the configured servers you want to collect. If the API is absent from the picker, a tenant administrator can provision its enterprise application withaz ad sp create --id <server-api-application-id>, then add the advertised delegated permission. - Allow the automatic scan to retry. Open the agent or MCP server in Inventory to inspect actual tool names and supplied schemas.
Tools.ListInvoke.All.
Forge uses the permission only for initialization and tools/list; it does not
invoke tools. Metadata-read permission alone does not include tool definitions.
Catalog visibility depends on the delegated account and does not prove that every
employee can invoke those tools.
For example, the verified OneDrive server reports API application ID
b0b2a2bb-6361-4549-a00c-a018417eb8e2. Use the API identity reported for your
configured server rather than reusing a Graph or Power Platform permission.
Microsoft 365 Copilot’s mcp_M365Copilot server reports API application ID
ab7c82de-7946-4454-ac28-70249d17c95e; its tools permission is separate from
OneDrive’s. Forge resolves a unique case-only difference in a Studio binding
against the catalog and uses Microsoft’s canonical server endpoint.
See Microsoft Agent365 permission setup.
Catalog pages resume across scheduled runs. An incomplete or denied catalog keeps
previously collected tools and reports degraded collection. Other base inventory
still imports. Omission cleanup waits for a complete scan, so a partial scan can
also retain base records that have disappeared from Microsoft. Prolonged
throttling can delay the next full refresh until catalog collection resumes.
Removing a grant does not disable catalog collection or treat its previous tools
as an empty list.
Microsoft Purview sensitivity labels
The Purview (DSPM) tab imports the sensitivity-label catalog and enriches known SharePoint and OneDrive resources with their labels. Purview audit is a separate source. A successful label import does not establish access to every Purview DSPM feature, audit feed, or inline content-processing API.Required for the label catalog
- In Connection, note the saved Application (client) ID. In Microsoft Entra, open the app registration with that exact ID in the saved tenant.
- Open API permissions → Add a permission → Microsoft Graph → Application
permissions. Add
InformationProtectionPolicy.Read.All. The delegatedInformationProtectionPolicy.Readpermission cannot authorize Forge’s background import. - Have a Privileged Role Administrator, or an administrator with a custom role authorized for these Microsoft Graph application permissions, select Grant admin consent. Confirm the permission’s status shows that admin consent is granted for the tenant. Adding the permission without granting consent is incomplete.
- In Microsoft Purview → Solutions → Information Protection, confirm that the tenant has sensitivity labels and appropriate licenses. Label authoring requires a licensed administrator with the Sensitivity Label Administrator role or an appropriate Information Protection role group. Sensitivity Label Reader provides read-only portal access. These portal roles are separate from the app’s Graph permission and consent.
- Return to Connection and select Save, even if the values have not changed. This starts a fresh label import and checks Microsoft sources without waiting for the next automatic collection. Keep the saved secret. Then open Purview (DSPM) and wait for Latest sync to update.
GET https://graph.microsoft.com/beta/security/informationProtection/sensitivityLabels
as the service principal. Microsoft documents
InformationProtectionPolicy.Read.All for this organization endpoint.
This is a beta API; confirm availability in the target tenant before relying on
it for production policy conditions. Microsoft’s newer
v1.0 tenant label API
uses different permissions. Granting its SensitivityLabel.Read or
SensitivityLabels.Read.All permission does not replace the permission used by
Forge’s current endpoint.
Microsoft’s label setup guide
explains portal roles and feature-specific licensing. A 403 response alone
does not establish a licensing problem. Do not add broad Graph write permissions
or MIP SDK permissions to resolve an unclassified access error.
Optional for file label enrichment
For label extraction from known SharePoint and OneDrive drive items, add the Microsoft Graph Application permissionFiles.Read.All and grant tenant
admin consent. Existing Sites.Read.All is a supported broader alternative.
Neither permission is required to list the label catalog. Do not grant
Files.ReadWrite.All solely for Forge label import.
Inline policy enrichment applies when the pre-tool request identifies an
existing drive item by drive/item ID, supported Work IQ path, or SharePoint or
OneDrive URL. Microsoft’s hook does not expose a newly created tool output for
pre-tool enforcement.
Check import results
A completed Latest sync and readable label names confirm a successful label import. A completed sync with zero labels is a successful empty response. Never means no successful label import has completed, even if Observed resources is greater than zero. If Latest sync issue reports403, confirm the saved tenant and app IDs,
the Application permission type, and tenant admin consent on that same app.
If those are correct and the error persists, give Forge support the sync issue
and its time. A stored credential or successful credential test does not prove
that the label API is authorized. Keep the error visible until an import
succeeds.
Purview audit search uses its own AuditLogsQuery.Read.All application grant.
It searches a rolling 24-hour window. Its default minimum interval between
checks is 15 minutes, but checks run when the scheduler next examines the
connection. Microsoft runs audit queries asynchronously; Forge retains a
running query ID and resumes it on a later collection.
Automatic collection and retries
The Microsoft source scheduler checks for due work at startup and at least once per minute. Each source retains its own collection interval. Connections and sources are processed sequentially, so provider response time can delay later sources. Active connection leases renew during long checks. Power Platform inventory saves encrypted provider pages and acknowledges progress after each successful stage or import. Unfinished scans resume across checks and worker restarts. Record imports run in bounded chunks; only a completed scan can reconcile missing inventory. Missing optional permissions produce degraded coverage and preserve previously collected rows. Throttling honors Microsoft’s Retry-After window. Invalid or expired continuations restart discovery safely. With the default configuration, completed Power Platform inventory is eligible hourly, package catalog every six hours, and permission, license, or preview errors generally wait six hours before another check. An unfinished Power Platform scan is eligible after one minute or its provider backoff, whichever is later.MICROSOFT_AGENT_SECURITY_POLL_INTERVAL_SECONDS changes normal source
intervals. Eligibility is not a collection completion guarantee.
The separate label taxonomy worker checks provider eligibility on the same
configured scheduler interval. The provider’s label refresh interval defaults
to 24 hours. Before the first successful import, a failed attempt also starts
that 24-hour interval. Granting permission in Microsoft does not itself reset
it. Existing application tokens can also retain the permissions from when
Microsoft issued them. Forge renews a cached token when it is within one minute
of its returned expiry; consent changes do not invalidate that cache. A fresh
check can therefore still report an access error while token renewal or Microsoft
consent propagation is pending. Do not assume that granting consent alone
completes an import.
To check newly granted access immediately, use Connection → Save with
the existing values. Check Purview (DSPM) → Latest sync for the result. A
refresh of the browser alone does not start an import.
Enforcement
Action availability is calculated from the connected source, permission,
license, object state, and post-action verification support. An action shown as
unsupported is not silently replaced with a weaker operation.
Verification
Microsoft setup reference:
Enable external threat detection and protection for Copilot Studio custom agents.
429 is retained as a degraded, retryable source with the Microsoft
Retry-After interval. A missing AI hunting table is distinguished from a
missing permission and from an unprovisioned Defender tenant.