Kenny Udeh
11/26/2025, 2:11 PMkapa.ai
11/26/2025, 2:11 PMFiles.Read.All permission under Microsoft Graph, and that admin consent has been granted for this permission. Without this, the app cannot access user drives or files, resulting in a 403 error. Follow these steps to verify and fix your setup: - Go to your app registration in the [Azure Portal](https://portal.azure.com/#home). - Under API permissions, ensure you have added Files.Read.All under Application permissions for Microsoft Graph. - Click Grant admin consent after adding the permission. - Double-check that you are using the correct client_id, client_secret, and tenant_id in your Airbyte configuration. - Make sure you are using Service Key Authentication in Airbyte, as required for application permissions. For detailed steps, see the [official setup guide](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-1-set-up-sharepoint-application). ### 2. User Principal Name (UPN) and Drive Access When using Service Key Authentication, you must provide the correct User Principal Name (UPN) for a user who has access to the relevant SharePoint drive. If the UPN is incorrect, or if the user does not have access to the drive or folder you are trying to sync, you will also get a 403 error. - Ensure the UPN you entered in Airbyte matches a real user in your Azure AD who has access to the SharePoint resources you want to sync. - If you are unsure of the correct UPN, you can find it in the Azure AD user list or via the [Microsoft documentation](https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls). ### 3. Folder Path and Drive Name If you specify a folder path or drive name that the service principal or the specified user does not have access to, you will also encounter a 403 error. Try leaving the folder path empty to test access to the root, or verify the path and drive name are correct. ### 4. Summary of Required Steps - Confirm you are using Application permissions (Files.Read.All) and have granted admin consent. - Use Service Key Authentication in Airbyte. - Provide the correct UPN for a user with access to the desired SharePoint resources. - Double-check your client_id, client_secret, and tenant_id. - Ensure the folder path and drive name are correct and accessible. For more details, refer to the Airbyte documentation: - [Step 1: Set up SharePoint application](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-1-set-up-sharepoint-application) - [Step 2: Set up the Microsoft SharePoint connector in Airbyte](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-2-set-up-the-microsoft-sharepoint-connector-in-airbyte) If you have verified all the above and still encounter issues, double-check that the permissions have propagated in Azure (sometimes this can take a few minutes), and try re-authenticating the connector in Airbyte. If the problem persists, please provide the exact configuration (redacting any sensitive information) for further troubleshooting.kapa.ai
11/26/2025, 2:11 PMkapa.ai
11/26/2025, 2:12 PM403 Client Error: Forbidden for url: https://graph.microsoft.com/v1.0/users/adaeze.udeh@easyfairs.com/drive) when using Service Key Authentication with the Airbyte SharePoint connector indicates an access or permissions issue. Based on the official Airbyte documentation, here are the most likely causes and solutions: --- ### 1. Application Permissions The SharePoint connector requires Application permissions (not Delegated permissions) in Azure. You must: - Add the Files.Read.All permission under Application permissions for Microsoft Graph in your Azure App Registration. - Click Grant admin consent after adding the permission. If these steps are not completed, your app will not be able to access user drives, resulting in a 403 error. See: [Step 1: Set up SharePoint application](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-1-set-up-sharepoint-application) --- ### 2. Correct UPN and User Access When using Service Key Authentication, you must provide the correct User Principal Name (UPN) for a user who has access to the relevant SharePoint drive. If the UPN is incorrect, or if the user does not have access to the drive or folder, you will get a 403 error. - Double-check the UPN you entered in Airbyte matches a real user in your Azure AD who has access to the SharePoint resources. - Reference: [Step 2: Set up the Microsoft SharePoint connector in Airbyte](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-2-set-up-the-microsoft-sharepoint-connector-in-airbyte) --- ### 3. Drive and Folder Path If you specify a drive or folder path that the service principal or the specified user does not have access to, you will also get a 403 error. Try leaving the folder path empty to test access to the root, or verify the path and drive name are correct. --- ### 4. Summary of Required Steps - Ensure you are using Application permissions (Files.Read.All) and have granted admin consent. - Use Service Key Authentication in Airbyte. - Provide the correct UPN for a user with access to the desired SharePoint resources. - Double-check your client_id, client_secret, and tenant_id. - Ensure the folder path and drive name are correct and accessible. --- If you have verified all the above and still encounter issues, the knowledge sources recommend double-checking your Azure permissions and configuration. If the problem persists, you may need to consult your Azure administrator to ensure the app registration and user permissions are set up correctly. For more details, see the official Airbyte documentation: [Microsoft SharePoint Source Setup Guide](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-1-set-up-sharepoint-application)