Skip to content

Commit

Permalink
token changed
Browse files Browse the repository at this point in the history
  • Loading branch information
srozemuller committed Oct 10, 2023
1 parent a5827c2 commit 6349dd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Security-ConditionalAccessGroupChanges/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ $headers = @{"X-IDENTITY-HEADER" = $env:IDENTITY_HEADER }
$ProgressPreference = "SilentlyContinue"
$graphUrl = "https://graph.microsoft.com"
$deltaFile = '.\deltaurl.txt'
$response = Invoke-WebRequest -UseBasicParsing -Uri $graphUrl -Headers $headers
$token = ($response.Content | Convertfrom-json).access_token
$token = (Get-AzAccessToken -ResourceUrl "https://graph.microsoft.com/")
$graphHeaders = @{
'Content-Type' = 'application/json'
Authorization = "Bearer {0}" -f $token.token
Expand Down

0 comments on commit 6349dd3

Please sign in to comment.