Is your feature request related to a problem? Please describe.
MSOnline provides the functionality to get alternate domains from client tenants. This is unbelievably useful when it comes to making new users as you can do something like:
Get-PartnerCustomer/Get-MsolPartnerContract ->use this to get CustomerID/TenantID
Get-PartnerDomains(Missing)/Get-MSOLDomain -TenantID $TenantID ->use this to get domains
New-PartnerCustomerUser/New-MsolUser -TenantID $Tenant -UPN $UPN ->etc. The UPN may require non-default domains.
Describe the solution you would like
Would like a cmdlet adding called something like:
Get-PartnerDomain
[-Status <DomainStatus>]
[-Authentication <DomainAuthenticationType>]
[-Capability <DomainCapabilities> (Can it handle email/365 - may be surplus)]
[-CustomerId <Guid>]
This would then by default return something like:
Domain | Status
example.tld | Verified
Describe alternatives you have considered
There do not appear to be any alternatives without using additional modules which frustrate user login and configuration.
Additional
It might seem easier to just use MSOnline but you can no longer assign licenses through MSOnline which makes scripts to create new users largely a waste of time.
Feature Request
Is your feature request related to a problem? Please describe. MSOnline provides the functionality to get alternate domains from client tenants. This is unbelievably useful when it comes to making new users as you can do something like:
Describe the solution you would like Would like a cmdlet adding called something like:
This would then by default return something like: Domain | Status example.tld | Verified
Similar to the MSonline Module: here
Describe alternatives you have considered There do not appear to be any alternatives without using additional modules which frustrate user login and configuration.
Additional It might seem easier to just use MSOnline but you can no longer assign licenses through MSOnline which makes scripts to create new users largely a waste of time.