You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a specific scenario but wanted to report the finding here.
Custom Aapp registration for Microsoft Graph PowerShell with Delegation access and using it for M365DSC exports.
Using on-prem synced cloud admin account that has UPN in different format than contoso.onmicrosoft.com.
Failing with below error:
`[WARNING] We recommend providing the username in the format of .onmicrosoft.* for the Credential property.
Exporting Microsoft 365 configuration for Components: ODSettings, SPOApp, SPOBrowserIdleSignout, SPOHomeSite, SPOHubSite, SPOOrgAssetsLibrary, SPOSearchManagedProperty, SPOSearchResultSource, SPOSiteDesign, SPOSiteDesignRights, SPOSiteScript, SPOStorageEntity, SPOTenantCdnEnabled, SPOTenantCdnPolicy, SPOTheme
Authentication methods specified:
CredentialsWithApplicationId
Connecting to {PnP}...❌
TenantId must be in format contoso.onmicrosoft.com`
The text was updated successfully, but these errors were encountered:
Agree, real issue could be TenantID here (which would be potentially being constructed from the userID/UPN that is not in the onmicrosoft format?).
If I include the -TenantID parameter with "contoso.onmicrosoft.com" formatted value in Export-M365DSCConfiguration cmdlet along with -ApplicationID then it thinks that I am using ServicePrincipal auth method instead of Cred+AppID and throws below error.
[ERROR] You have to specify ApplicationSecret, CertificateThumbprint or CertificatePath when you specify ApplicationId/TenantId
Probably a specific scenario but wanted to report the finding here.
Failing with below error:
`[WARNING] We recommend providing the username in the format of .onmicrosoft.* for the Credential property.
Exporting Microsoft 365 configuration for Components: ODSettings, SPOApp, SPOBrowserIdleSignout, SPOHomeSite, SPOHubSite, SPOOrgAssetsLibrary, SPOSearchManagedProperty, SPOSearchResultSource, SPOSiteDesign, SPOSiteDesignRights, SPOSiteScript, SPOStorageEntity, SPOTenantCdnEnabled, SPOTenantCdnPolicy, SPOTheme
Authentication methods specified:
Connecting to {PnP}...❌
TenantId must be in format contoso.onmicrosoft.com`
The text was updated successfully, but these errors were encountered: