Take a look at this link here:
The above applies to when you have an existing tenant.
If the ImmutableID is not null , you have to convert its value and set it on ms-dsconsystencyGUID in AD on-premise user account.
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola