Skip to content

Commit

Permalink
Update M365DSCUtil.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois authored Mar 28, 2024
1 parent 02d8d68 commit 8e11b18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3368,10 +3368,14 @@ function Get-M365DSCExportContentForResource
$ConnectionMode -eq 'ManagedIdentity')
{
$OrganizationName = $Results.TenantId
}
elseif ($null -ne $Credential.UserName)
{
$OrganizationName = $Credential.UserName.Split('@')[1]
}
else
{
$OrganizationName = $Credential.UserName.Split('@')[1]
$OrganizationName = ''
}

# Ensure the string properties are properly formatted;
Expand Down

0 comments on commit 8e11b18

Please sign in to comment.