File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function Invoke-ExecAddTenant {
31
31
# Create new tenant entry
32
32
try {
33
33
# Get tenant information from Microsoft Graph
34
- $headers = @ { Authorization = " Bearer $ ( $request.body.access_token ) " }
34
+ $headers = @ { Authorization = " Bearer $ ( $request.body.accessToken ) " }
35
35
$Organization = (Invoke-RestMethod - Uri ' https://graph.microsoft.com/v1.0/organization' - Headers $headers - Method GET - ContentType ' application/json' - ErrorAction Stop).value
36
36
$displayName = $Organization.displayName
37
37
$Domains = (Invoke-RestMethod - Uri ' https://graph.microsoft.com/v1.0/domains?$top=999' - Headers $headers - Method GET - ContentType ' application/json' - ErrorAction Stop).value
You can’t perform that action at this time.
0 commit comments