diff --git a/Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psd1 b/Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psd1 index d6d2101..3cf60e0 100644 --- a/Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psd1 +++ b/Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psd1 @@ -3,7 +3,7 @@ # # Generated by: Team Microsoft365DSC # -# Generated on: 2021/12/10 +# Generated on: 2022/01/11 # @{ @@ -12,7 +12,7 @@ RootModule = 'MSCloudLoginAssistant.psm1' # Version number of this module. - ModuleVersion = '1.0.82' + ModuleVersion = '1.0.83' # Supported PSEditions # CompatiblePSEditions = @() @@ -27,7 +27,7 @@ CompanyName = 'Microsoft Corporation' # Copyright statement for this module - Copyright = '(c) 2021 Microsoft Corporation. All rights reserved.' + Copyright = '(c) 2022 Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module Description = 'Checks the current status of connections to (and as required, prompts for login to) various Microsoft Cloud platforms.' diff --git a/Modules/MSCloudLoginAssistant/Workloads/MicrosoftGraph.psm1 b/Modules/MSCloudLoginAssistant/Workloads/MicrosoftGraph.psm1 index 42177aa..a4ec5ca 100644 --- a/Modules/MSCloudLoginAssistant/Workloads/MicrosoftGraph.psm1 +++ b/Modules/MSCloudLoginAssistant/Workloads/MicrosoftGraph.psm1 @@ -133,8 +133,7 @@ function Connect-MSCloudLoginMSGraphWithUser # Domain.Read.All permission Scope is required to get the domain name for the SPO Admin Center. Connect-MgGraph -AccessToken $AccessToken ` - -Environment $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.GraphEnvironment ` - -Scopes 'Domain.Read.All' | Out-Null + -Environment $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.GraphEnvironment $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ConnectedDateTime = [System.DateTime]::Now.ToString() $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.MultiFactorAuthentication = $false $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.Connected = $true