How to Fix OneDrive for Business Sign-in Issues on Android Apps
Question details
The user is unable to authenticate an Android application with a corporate OneDrive for Business account using the Microsoft Authentication Library (MSAL), despite personal OneDrive working.

- Product
- OneDrive for Business
- Device & OS
- Android
- Scenario
- Developing or configuring an Android app to upload files to enterprise cloud storage using MSAL.
- Observed behavior
- The application authenticates successfully with personal OneDrive accounts but fails to sign in to corporate OneDrive for Business accounts.
Ensure you have administrative access to your Microsoft 365 tenant and gather your tenant ID, error logs, and current MSAL code configuration before submitting a ticket.
Submit a Support Request in the Microsoft 365 Admin Center
Since this is an enterprise authentication and developer configuration issue rather than a standard app feature, the most effective solution is to open a service request directly with Microsoft.
OneDrive for Business relies on Azure Active Directory (Azure AD) for enterprise authentication. Issues connecting custom Android apps typically stem from Azure AD tenant configurations, app registrations, or API permissions rather than the consumer OneDrive service.
Go to the Microsoft 365 admin center in your web browser and log in with your global administrator or support administrator credentials.
On the left-hand navigation menu, click on 'Support' and then select 'New service request'.
In the issue description field, clearly state that your Android app cannot authenticate via MSAL for OneDrive for Business. Provide the specific authentication flow you are using.
Include your tenant details, the exact error messages or codes received during the sign-in failure, and snippets of your MSAL code configuration.

Work Smoothly on Mobile with WPS Office
While you troubleshoot custom app integrations with OneDrive, experience seamless mobile document management with WPS Office. It provides a free, lightweight alternative offering complete compatibility with Microsoft Office formats.
- 1. Download and Install: Get WPS Office for Android directly from the Google Play Store for free.
- 2. Open Office Documents: Easily open Word, Excel, and PowerPoint files on your mobile device without formatting issues.
- 3. Connect Cloud Storage: Link popular cloud services directly within WPS Office to access and save your files anywhere.

Frequently Asked Questions
Why does MSAL work for personal OneDrive but fail for OneDrive for Business?
OneDrive for Business requires Azure Active Directory (Azure AD) for enterprise authentication. This involves specific tenant configurations, registered applications in the Azure portal, and delegated API permissions, which are much stricter than the Microsoft account login used for personal OneDrive.
What details are crucial when submitting an MSAL authentication support ticket?
You should include your Microsoft 365 tenant ID, the exact MSAL authentication flow being utilized, relevant code configuration snippets, and any specific error logs or codes generated during the failed sign-in attempt.
Can I test OneDrive for Business Android integrations without an enterprise account?
Yes, you can sign up for the Microsoft 365 Developer Program. This provides a free sandbox subscription with admin privileges, allowing you to safely test Azure AD configurations and OneDrive for Business API integrations.




