Federation
Manage federation settings for cross-organization Teams communication. Federation controls which external organizations can communicate with your users through Teams chat and calling. OpsPilot365 provides centralized federation management with bulk deployment across managed tenants.
Note: Teams policies are available with any Microsoft 365 license that includes Teams. Policy management via Graph API requires
Directory.ReadWrite.AllandTeamsPolicy.ReadWrite.Allpermissions.
Federation Types
| Type | Description | Use Case |
|---|---|---|
| Open federation | Communicate with any Teams organization by default | Organizations with broad collaboration needs |
| Allowed domains | Only specific domains can communicate | Regulated industries requiring tight control |
| Blocked domains | All except listed domains can communicate | Block known problematic domains |
Domain Management
Configure which external domains can federate with your tenant:
- Add allowed domain — Permit federation with a specific external organization
- Add blocked domain — Block federation with a specific external organization
- Remove domain — Remove a domain from the allow or block list
Cross-Tenant Federation for MSPs
For MSP environments, OpsPilot365 enables centralized federation management:
- Apply consistent federation policies across all managed tenants
- Allow inter-tenant communication between managed client organizations
- Block federation with known malicious or undesirable domains
- Monitor federation settings for drift from baseline standards
Bulk Policy Deployment
OpsPilot365 enables bulk federation policy deployment across multiple tenants with conflict detection and rollback capabilities.
Deployment Workflow
- Define Policy — Create or import federation configuration with all settings
- Select Tenants — Choose target tenants using tags or manual selection
- Preview Changes — Review conflicts and differences before deployment
- Deploy and Monitor — Execute deployment with real-time status tracking
Policy Drift Detection
Monitor federation configurations across tenants to detect drift from your baseline:
- Compliant — Matches baseline configuration
- Warning — Minor deviations detected
- Drifted — Significant policy changes found
Remediation Options
- Auto-remediate — Automatically revert to baseline on detection
- Alert only — Send notification for manual review
- Update baseline — Accept drift as new standard
- Exempt tenant — Exclude from drift monitoring
Best Practices
Policy Design
- Use group-based assignment for scalability
- Keep the global policy restrictive as a baseline
- Document exceptions with business justification
- Test policies in pilot groups before wide deployment
Security Considerations
- Block federation with consumer domains by default
- Restrict external communication for sensitive tenants
- Review federation settings quarterly
- Monitor policy changes via audit logs
API Reference
# Get Teams app settings
GET /teamwork/teamsAppSettings# OpsPilot365 API - Bulk deploy federation policy
POST /api/teams/policies/deploy
{
"policyType": "federation",
"policyName": "MSP-Standard-Federation",
"tenantIds": ["tenant-1", "tenant-2"],
"assignmentType": "global",
"conflictResolution": "overwrite"
}GET /api/teams/federation/domains— List configured domainsPOST /api/teams/federation/domains— Add domain to allow/block listDELETE /api/teams/federation/domains/:domain— Remove domain from list