O365 different domain

Hallo. I have some problems with O365 integration.
The new created accounts (after successfully log into) has the default email value from Microsoft accounts.
But what when we want to change default domain name (example: company.domain.com) to another one (something.domain.com). It’s possible using scrips/settings in config files?