Symptoms
Customer imports Office 365 subscriptions from Microsoft Cloud to Odin Automation.
importSubsCSP.py
script fails:
Importing the Subscription for the Account #100123 failed: HTTP Error 500: Internal Server Error(The domain 'example' specified in the import data does not belong to the account with the tenant Id 'dbfe5c2c-...-6978487e3e74'. The domain owner is the account with the tenant Id '3bce2ca7-...-32a9fcf07639'.).
Cause
When readCSPAccounts.py
script was used to collect data about customer account from Microsoft Cloud, non-*.onmicrosoft.com was specified as --account-default-domain
parameter value.
Resolution
Use *.onmicrosoft.com subdomains only as --account-default-domain
parameter value for readCSPAccounts.py
script.
Also, *.onmicrosoft.com subdomain should be marked as "Default" in the Microsoft Portal.
The following requests have been addressed to Odin Development team:
- Documentation improvement request #APSA-19480: "[Documentation] The only *.onmicrosoft.com subdomain must be used with "--account-default-domain" parameter".
- Feature Request #PFR-1362: "[Office 365] "--account-default-domain" parameter should accept *.onmicrosoft.com subdomains only".