Trusted Tenant Relationships¶
Overview¶
The Trusted Tenant feature enables cross-tenant resource management without requiring separate authentication tokens or admin group membership for each tenant. Tenant administrators can delegate management privileges to other tenants through configurable trust relationships.
Use Cases¶
Use trusted tenant relationships for:
- Centralized administration: A central IT team manages multiple organizational tenants from one admin account.
- Managed service providers: External administrators manage client tenants without separate credentials.
- Hierarchical organizations: Parent organizations oversee subsidiary tenants while maintaining separation.
- Shared services: A shared services tenant manages resources across multiple business units.
How It Works¶
When trust is established:
- Tenant B trusts Tenant A: Administrators of Tenant A can manage Tenant B's resources
- Single Authentication: Admins use their Tenant A credentials—no re-authentication needed
- Full Access: Trusted admins have the same capabilities as native tenant admins
Trust Relationship Direction¶
Trust relationships are unidirectional:
- If Tenant B trusts Tenant A, then Tenant A admins can manage Tenant B
- Tenant B admins cannot manage Tenant A.
- To enable bidirectional management, create trust relationships in both directions
Managing Trust Relationships¶
API Endpoints¶
All endpoints require tenant admin privileges and are under /auth/admin/tenants/{tenantId}:
| Method | Endpoint | Description |
|---|---|---|
PUT |
/trust-tenant/{trustedTenantId} |
Establish trust relationship |
DELETE |
/trust-tenant/{trustedTenantId} |
Remove trust relationship |
GET |
/manages-tenants |
List tenants managed by this tenant |
GET |
/managed-by-tenants |
List tenants that manage this tenant |
Examples¶
Establish trust (allow Tenant A admins to manage Tenant B):
Remove trust relationship:
List all tenants that Tenant A can manage:
List all tenants that can manage Tenant B:
Using the Authifi Admin UI¶
- Log in to the Authifi Admin UI as a tenant administrator
- Navigate to the target tenant's settings
- Select Trusted Tenants from the menu
- Add or remove trusted tenant relationships as needed
Security Considerations¶
Access Requirements¶
- Admin Privileges Required: Only tenant administrators can establish or remove trust relationships
- Identity Provider Validation: Users must authenticate via trusted identity providers
- Audit Logging: All cross-tenant access is logged with full context for compliance
Best Practices¶
- Grant trust only to tenants that require cross-tenant management.
- Audit trust relationships regularly and remove those no longer needed.
- Record why each trust relationship exists.
- Use audit logs to track cross-tenant administrative actions.
Limitations¶
- Client Credentials Exclusion: Service-to-service authentication (client credentials flow) cannot use trusted tenant features—only user-based authentication is supported
- Admin-Only Access: The feature is limited to users with tenant administrator privileges
- Unidirectional Trust: Each trust relationship is one-way; bidirectional access requires two separate relationships
- Partial Endpoint Coverage: Some Authifi endpoints may not recognize trusted tenant relationships
Configuration¶
The Trusted Tenant feature is enabled by default, requires no environment variables or setting changes, and uses the existing authentication infrastructure.
Related Documentation¶
- Delegating Tenant Management to a Shared Tenant - Step-by-step guide for setting up delegation
- Authorization - General authorization concepts
- Admin Roles - Understanding administrator privileges