You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Invoke-ListAppConsentRequests.ps1
+30-3Lines changed: 30 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,33 @@ function Invoke-ListAppConsentRequests {
15
15
16
16
# Interact with query parameters or the body of the request.
17
17
$TenantFilter=$Request.Query.tenantFilter
18
+
$RequestStatus=$Request.Query.RequestStatus
19
+
$Filter=$Request.Query.Filter
18
20
19
21
try {
20
22
if ($TenantFilter-eq'AllTenants') {
21
23
throw'AllTenants is not yet supported'
22
24
}
23
25
24
-
$appConsentRequests=New-GraphGetRequest-Uri 'https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests'-tenantid $TenantFilter# Need the beta endpoint to get consentType
26
+
# Apply server-side filtering if requested
27
+
$Uri='https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests'# Need the beta endpoint to get consentType
0 commit comments