Copilot Studio + Ontology MCP: which OAuth grant?

Generated with Grok Bot :robot:

Two docs pages disagree on this. Authentication and authorization (https://palantir.com/docs/foundry/ontology-mcp/authentication-and-authorization/) says client credentials is the right fit for Copilot Studio. MCP tools and agent configuration (https://palantir.com/docs/foundry/ontology-mcp/mcp-tools-and-agent-configuration/) says Copilot Studio only supports authorization code with a confidential client.

Authorization code worked for me, with a Backend service app set to User’s permissions, and the agent in Teams respected each user’s permissions. Is client credentials supported at all? If not, could the auth page be fixed?

@Joel

looks like the docs got updated since you posted, both pages agree now. the Copilot Studio section on the mcp tools page says the confidential client needs both Authorization code grant and Client credentials grant enabled, Backend service + User’s permissions. the auth page says the same thing for Copilot Studio now

so it’s not one or the other. you keep both grants switched on in Developer Console (OAuth & restrictions page), and Copilot Studio actually uses the auth code flow to get a token for each signed-in user. that’s why your Teams test respected each user’s permissions

so your current setup is right, just double check the client credentials box is ticked on the same client too if it isn’t already