logo
search
MFA & Verification Issues

How to Fix Microsoft 365 Email Login Error in Gmail App on iPhone

Olivia MillerOlivia Miller Oct 19, 2026 869 views

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.

How to Add a School Microsoft 365 Email Account to the Gmail App on iPhone
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.
Before you start

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.

Solution 1Recommended

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.

1
Log into your Microsoft account

Open a web browser, go to the Microsoft account security portal (My Account), and sign in using your standard school email address and password.

2
Navigate to Security Info

Click on 'Security info' or 'Advanced security options' from the account dashboard menu.

3
Create a new app password

Locate the 'App passwords' section and click on 'Create a new app password'. Give it a recognizable name, such as 'Gmail on iPhone'.

4
Copy the generated password

Highlight and copy the 16-character password displayed on the screen. Note that this password will only be shown to you once.

5
Sign in to the Gmail app

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.

Generate and Use an App Password
Missing App Password Option: If you do not see the option to create an app password, your school's IT administrator may have disabled this feature for student accounts.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Lightweight installation saves storage space on your laptop or mobile device.All-in-one interface lets you manage Writer, Spreadsheet, Presentation, and PDF tools in one place.Free to use with a familiar, easy-to-learn user interface.
QA img-9

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.