Connection Issues
Diagnose and resolve Microsoft 365 tenant connection problems.
Invalid Credentials Error
Problem
Tenant sync fails with error: "Invalid credentials" or "Authentication failed"
Diagnosis
- App registration credentials may have expired
- Client secret was rotated but not updated in TrueConfig
- Required Graph API permissions were revoked
- Service principal was disabled or deleted
Resolution
Step 1: Verify App Registration
- Sign in to Azure Portal (portal.azure.com)
- Navigate to App Registrations
- Find your TrueConfig app registration
- Check Overview → Enabled: Should be "Yes"
Step 2: Check Client Secret Expiration
- In App Registration, go to Certificates & secrets
- Verify client secret has not expired
- If expired, create new client secret
- Copy the secret value (visible only once)
Step 3: Update Credentials in TrueConfig
- Navigate to Settings → Tenants → [Tenant Name]
- Click "Reconnect"
- Enter Application (client) ID
- Enter new client secret
- Enter Directory (tenant) ID
- Click "Save and Test Connection"
Insufficient Permissions Error
Problem
Sync fails with: "Insufficient privileges to complete the operation" or specific API endpoint access denied.
Diagnosis
Required Microsoft Graph API permissions are not granted or admin consent was not provided.
Required Permissions
The TrueConfig app registration requires these delegated permissions:
| Permission | Type | Purpose |
|---|---|---|
| Directory.Read.All | Application | Read directory data |
| Policy.Read.All | Application | Read Conditional Access policies |
| RoleManagement.Read.All | Application | Read role assignments |
| User.Read.All | Application | Read user profiles |
| AuditLog.Read.All | Application | Read audit logs |
| Reports.Read.All | Application | Read MFA registration details and user reports |
Resolution
- In Azure Portal, navigate to App Registrations → [Your App] → API permissions
- Click "Add a permission" → Microsoft Graph → Application permissions
- Add each required permission listed above
- Click "Grant admin consent for [Organization]"
- Verify all permissions show green checkmarks
- Return to TrueConfig and retry the connection test
Multi-Factor Authentication Required
Problem
Connection test prompts for MFA or fails with authentication challenges.
Diagnosis
TrueConfig uses application (service principal) authentication, not interactive user authentication. If you're seeing MFA prompts, the connection is configured incorrectly.
Resolution
Verify you're using the correct authentication method:
Required Credentials:
- Application (client) ID: A GUID from your app registration
- Directory (tenant) ID: Your tenant's GUID
- Client secret: The secret value you copied from App Registration
Do NOT use your email address and password - those are for interactive sign-in only.
Conditional Access Blocking Connection
Problem
Connection test fails with: "Conditional Access policy blocks this request"
Diagnosis
A Conditional Access policy is blocking the service principal from accessing Microsoft Graph.
Resolution
- In Azure Portal, navigate to Microsoft Entra ID → Security → Conditional Access
- Review all policies with "All cloud apps" or "Microsoft Graph" in scope
- Check if policies apply to "Service principals and workload identities"
- Add TrueConfig service principal to exclusions if blocking legitimate access
Rate Limit Exceeded
Problem
Sync fails with: "Rate limit exceeded" or HTTP 429 errors in logs.
Diagnosis
Microsoft Graph enforces rate limits on API calls. TrueConfig includes automatic retry logic, but sustained high-volume syncs may hit throttling limits.
Resolution
- Reduce sync frequency in Settings → Tenants → [Tenant] → Sync Schedule
- Avoid running manual full scans during automated sync windows
- If managing multiple tenants, stagger sync schedules by 30+ minutes
- Wait 5-10 minutes and retry - rate limits reset automatically
Missing MFA Registration Data
Problem
ID-01 control shows "0% of users have MFA registered" even though Conditional Access policies enforce MFA.
Diagnosis
The Reports.Read.All permission is missing, preventing TrueConfig from accessing the MFA registration endpoint (/beta/reports/authenticationMethods/userRegistrationDetails).
Resolution
For new tenant connections:
- Disconnect and reconnect your tenant to trigger a new OAuth consent flow
- The updated consent screen will automatically request
Reports.Read.All - Accept the permissions and complete the connection
- Run a new scan - MFA registration data will now be collected
For existing tenant connections without reconnecting:
- In Azure Portal, navigate to App Registrations → [Your App] → API permissions
- Click "Add a permission" → Microsoft Graph → Application permissions
- Search for and add
Reports.Read.All - Click "Grant admin consent for [Organization]"
- Verify the permission shows a green checkmark
- Run a new scan in TrueConfig - MFA data will now be collected
Reports.Read.All is not granted, scans will continue successfully but ID-01 will only evaluate based on Conditional Access policies. The scan logs will show a warning: "MFA registration fetch failed (requires Reports.Read.All)".Still Need Help?
If you've followed these troubleshooting steps and still cannot connect, collect the following information:
- Application (client) ID from Azure Portal
- Directory (tenant) ID from Azure Portal
- Screenshot of granted API permissions showing green checkmarks
- Error message from TrueConfig connection test
- Tenant sync logs from Audit Logs page
Contact support at support@trueconfig.com with this information for assistance.