Dear @Roots&Helixes,
Thank you for posting your question in the Microsoft Q&A forum.
Based on your description, after changing the primary domain/UPN, OneDrive works in the browser but shows 404 File Not Found when accessed from the OneDrive app in Microsoft Teams.
Could you please confirm that are multiple users affected, or only specific accounts?
In the meantime, here are some suggestions you can try:
Trigger OneDrive access (file upload or Files tab)
Sign out of Teams
Close Teams completely
Reopen Teams and sign back in to check whether the issue still persists or not. Expect OneDrive URLs to change. Sync clients usually auto-update, but users may need to restart the sync app.
Validate DNS and Identity
Update DNS records (MX, SPF, DKIM, DMARC) for the new domain.
Verify Entra ID (Azure AD) and Conditional Access policies.
For more information, you can refer to this article
How UPN changes affect the OneDrive URL and OneDrive features
"404 File not found" error when accessing the OneDrive app in Teams
Please let me know if this helps resolve the issue. If it doesn’t, feel free to leave a comment below so we can work together to find a better solution.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.