Multipel Accounts on Xbox?

Hi
I have buy Diablo 4 on PC and Xbox.
My friend have buy Diablo 4 on PS5.

Can my friend come home to me and use his Diablo 4 account on my xBox?

Me playing on PC and my friend on my Xbox
Playing together online?

Yes. He can play with his account because he will have a Battle.net account set up and it will allow him to connect to his account in Diablo 4. I played Diablo 2 R on Nintendo and then played with the same account on PC. You may also need to create an account on your Xbox console. And then connect your Xbox account to Battle.net and you’re ready to play. Just as the PS account must be linked to Battle.net.

Is there Switch account funktion in Diablo 4 Xbox?

Because you need to buy Xbox Gold to play online?

So thought of buying it on my Microsoft account
We thought we’d play together, me on PC and him on my xbox