If the Code42 Microsoft OneDrive or Office 365 email data connection has been deauthorized in the Code42 console, or if the Code42 application has been removed from your Microsoft Azure environment, the Code42 connection enters an Error status and this error message appears in the details for that data connection:
The Code42 enterprise application in your Microsoft Azure account does not have the right permissions or has been deleted. Deauthorize this data connection and set up a new data connection.
To troubleshoot this error, verify whether the Code42 application exists in Microsoft Azure.
Verify the Code42 application exists in Microsoft Azure
- Log in to portal.azure.com.
- Click Azure Active Directory.
- Click Enterprise Applications.
- In the Enterprise applications list, look for an application with a name starting with "Code42."
- For OneDrive, look for the "Code42 Cloud Services" enterprise application.
- For Microsoft Office 365 email, look for the "Code42 Email Data Connector" enterprise application.
- If the Code42 application is listed, continue to the next section to grant admin consent to reset its permissions. If it is not listed, deauthorize the connection in the Code42 console and set up a new data connection.
If the app exists, grant admin consent to it in Microsoft Azure
If the Code42 application exists in Microsoft Azure, follow these steps to grant admin consent to reset its permissions:
- Click the application name in the Enterprise applications list to open its details.
- Under Security in the left navigation pane, click Permissions.
- Click Grant admin consent for Code42 to reset the application's permissions to those required for monitoring.
After you grant the application permissions, Code42 detects the change and returns the connection to the Monitoring status within 24 hours. You have resolved the error and are finished with troubleshooting.
If the app doesn't exist, deauthorize the connection and set up a new one
If the Code42 application does not exist in Microsoft Azure, set up a new Code42 connection to your Microsoft environment.
- Sign in to the Code42 console.
- Select Administration > Integrations > Data Connections.
- Locate the service to deauthorize in the table, then click View details .
- Click Deauthorize.
- Set up a new Code42 OneDrive cloud storage or Microsoft Office 365 email service connection using your Microsoft 365 administrator credentials.
Microsoft documentation: Grant tenant-wide admin consent to an application