How to Fix Microsoft 365 Email Login Error in Gmail App on iPhone
Question details
The user is unable to add their school Microsoft 365 email account to the Gmail application on an iPhone due to persistent password errors.

- Product
- Microsoft 365 / Gmail App
- Device & OS
- iOS
- Scenario
- Attempting to set up a school-provided email account in a third-party mobile email client.
- Observed behavior
- The Gmail app displays an incorrect username or password error during setup, even though the exact same credentials work successfully in Outlook and Microsoft Office.
Make sure you can successfully log into your school's Microsoft 365 web portal to confirm your password is correct, and have a secondary device ready if you need to approve a two-factor authentication prompt.
Generate and Use an App Password
Use a specialized app password to bypass standard password errors caused by Two-Factor Authentication (2FA) in third-party email apps.
When Two-Factor Authentication is enabled on a Microsoft 365 account, standard passwords may not work in third-party applications like Gmail. Instead, you need to generate a unique app password from your Microsoft account security settings.
Open a web browser, go to the Microsoft account security portal (My Account), and sign in using your standard school email address and password.
Click on 'Security info' or 'Advanced security options' from the account dashboard menu.
Locate the 'App passwords' section and click on 'Create a new app password'. Give it a recognizable name, such as 'Gmail on iPhone'.
Highlight and copy the 16-character password displayed on the screen. Note that this password will only be shown to you once.
Open the Gmail app on your iPhone, proceed to add your Microsoft 365 account, and paste the copied app password into the password field instead of your regular school password.

Contact the School IT Administrator
Request necessary account permissions if app passwords are disabled or third-party email apps are blocked by school policy.
Try WPS Office for Your School Assignments and Documents
While resolving your school email setup, consider using WPS Office for your coursework. It is a powerful, lightweight, and completely free alternative to Microsoft Office that easily handles all your document, spreadsheet, and presentation needs.

Frequently Asked Questions
Why does my Microsoft 365 password work on my computer but not in the iPhone Gmail app?
This discrepancy occurs because your school likely requires Two-Factor Authentication (2FA). While native Microsoft apps and browsers can display the 2FA prompt, third-party apps like Gmail often cannot, resulting in an incorrect password error.
What is an app password in Microsoft 365?
An app password is a randomly generated 16-character code that allows older non-browser apps or third-party applications to access your Microsoft account without triggering a two-step verification prompt.
Why can't I find the option to create an app password?
Your school's IT administrator controls the overarching security policies for your Microsoft 365 account. If they have disabled the use of app passwords or blocked third-party email clients, the option will be hidden from your security settings.




