-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additions for Part 9 Connectors/Tokens
- Loading branch information
1 parent
6de18a0
commit 93057ec
Showing
10 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
PowerQuery/Queries-Direct-BearerToken/Get-Connector-AppleMDMPushCert(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : DeviceManagementServiceConfig.ReadWrite.All | ||
// DeviceManagementManagedDevices.Read.All | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/applePushNotificationCertificate/", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
#"Converted to Table" = Record.ToTable(DirectGraphCall), | ||
|
||
// Formatting | ||
#"Transposed Table" = Table.Transpose(#"Converted to Table"), | ||
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]), | ||
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"@odata.context", type text}, {"id", type text}, {"appleIdentifier", type text}, {"topicIdentifier", type text}, {"lastModifiedDateTime", type datetime}, {"expirationDateTime", type datetime}, {"certificateUploadStatus", type any}, {"certificateUploadFailureReason", type any}, {"certificateSerialNumber", type text}, {"certificate", type any}}) | ||
in | ||
#"Changed Type" |
29 changes: 29 additions & 0 deletions
29
PowerQuery/Queries-Direct-BearerToken/Get-Connector-DomainJoin(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : DeviceManagementConfiguration.Read.All | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/domainJoinConnectors/", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
value = DirectGraphCall[value], | ||
#"Converted to Table" = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error), | ||
|
||
// Formatting | ||
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "displayName", "lastConnectionDateTime", "state", "version"}, {"id", "displayName", "lastConnectionDateTime", "state", "version"}), | ||
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"lastConnectionDateTime", type datetime}}) | ||
in | ||
#"Changed Type" |
29 changes: 29 additions & 0 deletions
29
PowerQuery/Queries-Direct-BearerToken/Get-Connector-GooglePlay(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : DeviceManagementConfiguration.Read.All | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/androidManagedStoreAccountEnterpriseSettings", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
#"Converted to Table" = Record.ToTable(DirectGraphCall), | ||
|
||
// Formatting | ||
#"Transposed Table" = Table.Transpose(#"Converted to Table"), | ||
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]), | ||
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"@odata.context", type text}, {"id", type text}, {"bindStatus", type text}, {"lastAppSyncDateTime", type datetime}, {"lastAppSyncStatus", type text}, {"ownerUserPrincipalName", type text}, {"ownerOrganizationName", type text}, {"lastModifiedDateTime", type datetime}, {"enrollmentTarget", type text}, {"targetGroupIds", type any}, {"deviceOwnerManagementEnabled", type logical}, {"androidDeviceOwnerFullyManagedEnrollmentEnabled", type logical}, {"managedGooglePlayInitialScopeTagIds", type any}, {"companyCodes", type any}}) | ||
in | ||
#"Changed Type" |
30 changes: 30 additions & 0 deletions
30
PowerQuery/Queries-Direct-BearerToken/Get-Connector-NDES(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : DeviceManagementConfiguration.Read.All | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/ndesConnectors/", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
value = DirectGraphCall[value], | ||
|
||
// Formatting | ||
#"Converted to Table" = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error), | ||
#"Expanded Display Name" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "lastConnectionDateTime", "state", "displayName", "machineName", "enrolledDateTime", "roleScopeTagIds", "connectorVersion"}, {"id", "lastConnectionDateTime", "state", "displayName", "machineName", "enrolledDateTime", "roleScopeTagIds", "connectorVersion"}), | ||
#"Renamed Connector Version" = Table.RenameColumns(#"Expanded Display Name",{{"displayName", "Display Name"}, {"connectorVersion", "Connector Version"}}) | ||
|
||
in | ||
#"Renamed Connector Version" |
30 changes: 30 additions & 0 deletions
30
PowerQuery/Queries-Direct-BearerToken/Get-Connector-VPPToken(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : DeviceManagementServiceConfig.Read.All | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/depOnboardingSettings/", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
value = DirectGraphCall[value]{0}, | ||
|
||
// Formatting | ||
#"Converted to Table" = Record.ToTable(value), | ||
#"Transposed Table" = Table.Transpose(#"Converted to Table"), | ||
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]), | ||
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"id", type text}, {"appleIdentifier", type text}, {"tokenExpirationDateTime", type datetime}, {"lastModifiedDateTime", type datetime}, {"lastSuccessfulSyncDateTime", type datetime}, {"lastSyncTriggeredDateTime", type datetime}, {"shareTokenWithSchoolDataSyncService", type logical}, {"lastSyncErrorCode", Int64.Type}, {"tokenType", type text}, {"tokenName", type text}, {"syncedDeviceCount", Int64.Type}, {"dataSharingConsentGranted", type logical}, {"roleScopeTagIds", type any}}) | ||
in | ||
#"Changed Type" |
27 changes: 27 additions & 0 deletions
27
PowerQuery/Queries-Direct-BearerToken/Get-Connector-WindowsData(Bearer).pq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
let | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "beta/", | ||
Resource = "deviceManagement/dataProcessorServiceForWindowsFeaturesOnboarding", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
#"Converted to Table" = Record.ToTable(DirectGraphCall), | ||
|
||
// Formatting | ||
#"Transposed Table" = Table.Transpose(#"Converted to Table"), | ||
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]), | ||
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"@odata.context", type text}, {"hasValidWindowsLicense", type logical}, {"areDataProcessorServiceForWindowsFeaturesEnabled", type logical}}) | ||
in | ||
#"Changed Type" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
let | ||
|
||
// Application Registration Permissions needed to make this call : | ||
|
||
// Microsoft Graph URL | ||
Endpoint = "https://graph.microsoft.com/", | ||
Version = "", | ||
Resource = "", | ||
QueryParams = "", | ||
GraphURL = Endpoint & Version & Resource & QueryParams, | ||
|
||
// Get an Access Token to make Graph Calls (uses Application Registration) | ||
Bearer = #"Get-BearerToken" (TenantID, AppID, SecretID, Endpoint), | ||
|
||
// Direct Graph call (No pagination) | ||
DirectGraphCall = Json.Document(Web.Contents( | ||
GraphURL, | ||
[ | ||
Headers=[#"Content-Type"="application/json", #"Authorization"=Bearer] | ||
] | ||
)), | ||
value = DirectGraphCall[value] | ||
|
||
// Formatting | ||
|
||
in | ||
value |
File renamed without changes.
File renamed without changes.
File renamed without changes.