How to add AD user with UPN different than domain via commands (automated)

Posted on

We used to use this command in the ovirt shell:

add user --principal userX --user_name userX --domain-name default.domain

but after a change of the User Principal Name form default.domain to example.com we aren't able to add the user anymore.

The structure is as follows:
Forest : default.domain
User Principal Name: example.com
The User Principal name before was default.domain as well

Do you know how would it be the correct sintaxis of the command or other tool similar to add AD users via CLI?