Microsoft Teams Integration Setup
This guide walks you through connecting Microsoft Teams to RAD Security, enabling automated notifications from workflows directly to your Teams channels and users. The setup requires administrative access to configure a service account and grant organization-wide consent.Prerequisites
Before you begin, ensure you have:Step 1: Grant Admin Consent
The first step is to grant organization-wide consent for the RAD Security application. This allows the service account (created in Step 2) to send notifications without requiring individual user consent.Access the Admin Consent URL
Log in as Administrator
Review Permissions
- Read team names and descriptions - To identify available Teams
- Read channel names and descriptions - To target specific channels
- Send messages to channels - To deliver workflow notifications
- Send and read direct messages - To send notifications to individual users
- Read user profiles - To identify users for direct messaging
- Maintain offline access - To refresh tokens automatically
Grant Consent
Step 2: Create Service Account
The Microsoft Teams integration uses a dedicated service account to send notifications on behalf of RAD Security. This ensures notifications come from a consistent, identifiable source.Navigate to Microsoft 365 Admin Center
Create New User
- Username: Choose a descriptive name (e.g.,
rad-bot,rad-security,security-notifications) - Display name: “RAD Security” or “RAD Security Bot”
- Domain: Use your organization’s primary domain
rad-bot@yourcompany.comAssign License
- Microsoft 365 Business Basic (minimum)
- Microsoft 365 Business Standard
- Microsoft 365 E3 or E5
Configure Password
- Uncheck “Require this user to change their password when they first sign in”
- Generate a secure password (20+ characters recommended)
- Save these credentials securely in your organization’s password manager or secrets vault
Complete User Creation
Step 3: Configure Integration in RAD Security
Now that admin consent is granted and the service account is created, you can configure the integration in RAD Security.Navigate to Integrations
Select Microsoft Teams
Enter Integration Details
- Integration Name: e.g.,
Microsoft Teams - Production
Step 4: Complete OAuth Authorization
You’ll now complete the OAuth flow using the service account credentials you created in Step 2.Sign In as Service Account
Complete Authentication
Verify Success
- Integration status shows Connected
- Tenant name is displayed correctly
- Scopes are listed properly
Step 5: Add Bot to Teams Channels
For the RAD Security bot to send messages to Teams channels, the service account must be added as a member of those channels. This is required because we use delegated permissions where the authenticated user (service account) must be a channel member to post messages.Open Microsoft Teams
Navigate to Target Channel
Add the Bot as a Member
- Go to the Members tab
- Click Add members
- Search for your service account name (e.g., “RAD Security Bot” or “rad-bot@yourcompany.com”)
- Click Add and set the role to Member
/add in the channel followed by the bot’s name or email address.Repeat for Other Channels
Verify Integration
After completing the setup, verify that the integration is working properly:Check Integration Status
- Status shows Connected
- Tenant name matches your organization
- User information is displayed correctly
Send Test Notification to Channel
- Target format:
"Team Name/Channel Name" - Example:
"Security Operations/Alerts"
Send Test Direct Message
- Target format: User’s email address
- Example:
"user@yourcompany.com"
Configuring Notification Destinations
When setting up workflow notifications, you can specify where messages should be delivered in Microsoft Teams:Send to a Channel
To send notifications to a specific Teams channel, use the format “Team Name/Channel Name”:- Team and channel names are case-sensitive
- Use the exact names as they appear in Microsoft Teams
- The service account must be added as a member of the channel (see Step 5)
- Works with both standard and private channels
"Engineering/Deployments""Security Team/Incident Response""Operations/Monitoring Alerts"
Send Direct Messages to Users
To send notifications directly to a specific user, provide their email address:- Use the email address associated with the user’s Microsoft 365 account
- The user will receive a direct message from the RAD Security bot
- No additional setup required - DMs work once the integration is configured
- The user must be in the same Microsoft 365 tenant
"john.doe@company.com""security-team@company.com""oncall@company.com"
What Notifications Are Sent
Workflow Completion
Workflow Completion
- Notifications when automated workflows complete successfully
- Summary of workflow actions taken
- Links to detailed results in RAD Security
Security Alerts
Security Alerts
- Critical security events detected by workflows
- Threshold violations and policy breaches
- Urgent issues requiring immediate attention
Custom Workflow Events
Custom Workflow Events
- Custom notifications configured in your workflows
- Scheduled report summaries
- Integration status updates
Use Cases
Workflow Monitoring
Incident Response
Team Collaboration
On-Call Notifications
Troubleshooting
Need admin approval error during OAuth
Need admin approval error during OAuth
- Admin consent (Step 1) was not completed successfully
- You’re logging in with your personal account instead of the service account
- Admin consent was granted for a different tenant
- Verify Step 1 (Admin Consent) was completed successfully
- Ensure you’re logging in with the service account credentials during OAuth (Step 4)
- Check that admin consent was granted for the correct Microsoft 365 tenant
- Try the admin consent flow again if needed
Channel not found error
Channel not found error
- The team or channel name is misspelled or incorrectly formatted
- The service account hasn’t been added as a member of the channel
- The channel is private and the service account doesn’t have access
- Verify the exact team and channel names (they are case-sensitive)
- Check the format is exactly:
"Team Name/Channel Name" - Add the service account as a member of the channel (see Step 5)
- For private channels, ensure the service account has been explicitly added
User not found error
User not found error
- The email address is incorrect or misspelled
- The user doesn’t exist in your Microsoft 365 tenant
- The user is in a different tenant
- Verify the email address is correct
- Check that the user exists in your Microsoft 365 tenant
- Ensure the user is in the same tenant as the service account
- Try sending to a different user to isolate the issue
Integration status shows Pending
Integration status shows Pending
- The OAuth flow (Step 4) wasn’t completed
- You logged in with the wrong account during OAuth
- The OAuth flow was interrupted
- Complete the OAuth authorization flow (Step 4)
- Ensure you’re logging in with the service account credentials
- Delete the integration and start over from Step 3 if needed
Token expired or authentication failed
Token expired or authentication failed
- The service account password was changed
- The service account was disabled or deleted
- Admin consent was revoked
- The service account license was removed
- Verify the service account is still active in Microsoft 365
- Check that the service account still has a Teams license assigned
- Verify that admin consent is still granted
- Re-authorize the integration by clicking Reconnect in RAD Security
- If the service account password changed, you may need to delete and recreate the integration
Forbidden error when sending messages
Forbidden error when sending messages
- The service account is not a member of the target channel
- The service account’s Teams license expired or was removed
- Add the service account to the channel as a member (Step 5)
- Verify the service account has an active Teams license
- Check that the service account can access Teams by logging in manually