To export emails from Microsoft 365, you can use the mailbox import and export APIs in Microsoft Graph. However, if you are unable to find the import/export tab, it's important to note that you need the Mailbox Import Export role in Exchange Online to create import jobs and export emails. By default, no role group in Exchange Online has this role, so you may need to add it to your role group or create a new role group with the necessary permissions.
Here are the steps to follow:
- Ensure you have the Mailbox Import Export role assigned to your account.
- Use the mailbox import and export APIs to export the contents of your mailbox. This allows you to access emails, contacts, tasks, and calendars in a uniform format.
- The exported items can be saved to a hard drive for backup or other purposes.
If you continue to experience issues, you may want to check your permissions or consult your administrator to ensure you have the necessary access to perform the export.