Microsoft Teams Integration Guide
Connect your AI agent to Microsoft Teams for channel messaging, meeting scheduling, file sharing, and team management through Azure AD and the Microsoft Graph API.
What your agent can do
Enterprise-grade Teams capabilities through Microsoft Graph.
Channel messaging
Post messages, reply to threads, and participate in Teams channel conversations. Your agent can share updates, answer questions, and collaborate in real time.
Meeting scheduling
Create and manage Teams meetings through the Microsoft Graph API. Your agent can schedule calls, send invites, and update meeting details.
File sharing
Upload and share files in channels and chats. Your agent can distribute reports, documents, and resources directly within Teams.
Team management
Access team membership, channel lists, and organizational data. Your agent can look up team members and route requests to the right people.
Prerequisites
What you need before connecting Microsoft Teams to your agent.
- A Microsoft 365 organization with Teams enabled
- Azure AD admin access to register applications
- Permission to grant admin consent for Microsoft Graph API permissions
- A ClawTrust agent on any plan (Starter, Pro, or Enterprise)
Step-by-step setup
Connect Microsoft Teams to your agent in about 15 minutes.
Register an Azure AD application
Go to portal.azure.com > Azure Active Directory > App registrations > New registration. Name it "ClawTrust Agent" and set the supported account type to "Single tenant" for your organization.
Add Microsoft Graph API permissions
In your app registration, go to API permissions > Add a permission > Microsoft Graph > Application permissions. Add: ChannelMessage.Send, Channel.ReadBasic.All, Team.ReadBasic.All, Calendars.ReadWrite, Files.ReadWrite.All. Click "Grant admin consent".
Create a client secret
Go to Certificates & secrets > New client secret. Set an expiry (recommended: 12 months). Copy the secret value immediately. You will also need your Application (client) ID and Directory (tenant) ID from the Overview page.
Add the credential in ClawTrust
In your agent's dashboard, go to Credentials > Add Credential. Select "OAuth2 Client Credentials" as the type. Enter the Client ID, Client Secret, and Tenant ID. Set the token URL to https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token and the scope to https://graph.microsoft.com/.default.
Test the connection
Click "Test" on the credential card. ClawTrust will perform the client credentials flow, obtain an access token, and verify it against the Microsoft Graph API. A successful test confirms your agent can access Teams.
Credential details
Reference for the credential configuration fields.
Security note
Your Azure AD client secret is encrypted with AES-256-GCM before storage. The proxy handles the OAuth2 token exchange automatically and restricts all API calls to *.microsoft.com and graph.microsoft.com. You can revoke the client secret from the Azure portal at any time. Token refresh is handled transparently by the proxy.
Example actions
Things you can ask your agent to do once Teams is connected.
Post a project status update in the #engineering channel every morning
Schedule a 30-minute Teams meeting with the sales team for tomorrow at 2 PM
Upload the weekly analytics report to the #marketing channel
List all members of the Product team and their current availability
Reply to the latest thread in #support with troubleshooting steps
Ready to connect your agent to Teams?
Enterprise-grade integration with Azure AD. Encrypted credentials, automatic token refresh.