This guide shows you how to configure the Microsoft Teams connector for WRITER Agent. After setting up this connector, WRITER Agent can perform operations like accessing teams, channels, messages, and collaboration settings.Documentation Index
Fetch the complete documentation index at: https://dev.writer.com/llms.txt
Use this file to discover all available pages before exploring further.
Set up the Microsoft Teams connector
Configure the Microsoft Teams connector in AI Studio under Connectors & Tools. The Microsoft Teams connector supports two authentication options:- WRITER-managed OAuth (recommended): Writer provides the OAuth application. No setup required - just authorize access to your Microsoft Teams.
- Organization-managed OAuth: Create your own Microsoft OAuth application for custom branding and control.
Most users should choose WRITER-managed OAuth for faster setup. Only use organization-managed OAuth if you need custom branding or have specific security requirements.
Create a Microsoft OAuth application (organization-managed only)
If you choose to create a self-managed OAuth application to connect, first create a new Microsoft OAuth application in Microsoft Entra ID (Azure AD):- Navigate to the Microsoft Entra admin center
- Go to Applications > App registrations
- Create a new registration
- Configure authentication with Web platform
- Add the Writer redirect URI to Redirect URIs:
- Add API permissions for the required Microsoft Graph scopes
- Create a client secret in Certificates & secrets
- Copy the application (client) ID and client secret
Required OAuth scopes
User.Read- Read user profile informationTeam.ReadBasic.All- Read basic team informationChannel.ReadBasic.All- Read basic channel informationChannelMessage.ReadWrite- Read and write channel messagesChannelMessage.Read.All- Read all channel messagesChannelMessage.Send- Send messages to channelsChannelSettings.ReadWrite.All- Read and write channel settingsChat.Create- Create chatsChat.ReadBasic- Read basic chat informationChat.Read- Read chat messagesChat.ReadWrite- Read and write chat messagesChat.ReadWrite.All- Read and write all chat messagesChatMessage.Read- Read chat messagesChatMessage.Send- Send chat messagesChatMember.ReadWrite- Manage chat membersGroup.Read.All- Read all groupsGroup.ReadWrite.All- Read and write all groupsTeamMember.ReadWrite.All- Manage team membersoffline_access- Maintain access to data
Configure the connector in AI Studio
- Navigate to Connectors & Tools in AI Studio
- Select the Microsoft Teams connector
- Select who has access by default (all users or specific teams)
- Select the connection type:
- Level: User level (each user authenticates their own account) or org level (shared connection to a single account)
- Managed by: WRITER-managed or self-managed (your own OAuth app)
- Select which tools to enable for your agents
- Enter your OAuth client ID and client secret (if using self-managed OAuth)
- Complete the OAuth authorization flow
Next steps
- Set up connectors: Learn how to configure and enable connectors in AI Studio
- Tool calling guide: Understand how AI agents use tools in conversations
- WRITER Agent guide: Learn how to use WRITER Agent with connected tools
- MCP gateway overview: Learn about Writer’s MCP gateway architecture