Android M365 mail config

Login on

Go to Apps -> App configuration policies

Click on +Add -> Managed devices

Add a name
Fill in Description if needed
Select Platform Android Enterprise
Select Profile. I Use All, to make it easy.

Then Select app Microsoft Outlook.

Click on Next

Configuration Settings format, select Use configuration designer
Put Email account configuration settings on Yes
Authentication type to Modern authentication
Username attribute from AAD to User Principal Name
Email addres attribute from AAD to Primary SMTP Adress
Allow only Work or school accounts to Enabled (If you work with workprofile)

Click on Next

Then Select the group or All users. and Save it.