When changing a users username from @onmicrosoft.com to real domain you get the following error: "We're sorry, the user couldn't be edited. Review the user information and try again. Correlation ID"
Or if creating a new user and you get the following error "A user with this name already exists. Use a different name."
But running the cmdlet as described in the following help article does not yield any results: