Skip to content

Commit

Permalink
Updates to MSGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Jan 11, 2022
1 parent 3235370 commit 7905479
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Team Microsoft365DSC
#
# Generated on: 2021/12/10
# Generated on: 2022/01/11
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'MSCloudLoginAssistant.psm1'

# Version number of this module.
ModuleVersion = '1.0.82'
ModuleVersion = '1.0.83'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand All @@ -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.'
Expand Down
3 changes: 1 addition & 2 deletions Modules/MSCloudLoginAssistant/Workloads/MicrosoftGraph.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7905479

Please sign in to comment.