Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage fails with No HTTP resource was found that matches the request URI #2852
Labels
no-recent-activity
Service issue
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
Describe the bug
Running Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage fails with error:
Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage : No HTTP resource was found that matches the request URI 'https://api.accessreviews.identitygovernance.azure.com/accessReviews/v2.0/me/appConsentRequests('ID REMOVED')/userConsentRequests('ID REMOVED')/approval/stages?ring=2'.
Status: 404 (NotFound)
ErrorCode:
Expected behavior
Excpect to get the approval stage specific UserConcentID.
How to reproduce
1 Run Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage -AppConsentRequestId -UserConsentRequestId
Running Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId -UserConsentRequestId to same ids work fine.
SDK Version
2.20.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```DEBUG: [CmdletBeginProcessing]: - Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount begin processing with parameterSet 'Get'.
DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [Application.Read.All, Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All, AuditLog.Read.All, ChannelMessage.Send, CrossTenantInformation.ReadBasic.All, Device.ReadWrite.All, DeviceManagementApps.ReadWrite.All, DeviceManagementConfiguration.ReadWrite.All
, DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All, DeviceManagementServiceConfig.ReadWrite.All, Directory.AccessAsUser.All, Directory.Read.All, Directory.ReadWrite.All, Domain.Read.All, Domain.ReadWrite.All, email, EntitlementManagement.ReadWrite.All, Group.R
ead.All, Group.ReadWrite.All, GroupMember.Read.All, GroupMember.ReadWrite.All, IdentityProvider.Read.All, openid, Organization.Read.All, Policy.Read.All, PrivilegedAccess.Read.AzureAD, PrivilegedAccess.Read.AzureADGroup, PrivilegedAccess.Read.AzureResources, PrivilegedAssignmentSchedule.Read.Azur
eADGroup, PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup, PrivilegedEligibilitySchedule.Read.AzureADGroup, PrivilegedEligibilitySchedule.ReadWrite.AzureADGroup, profile, RoleAssignmentSchedule.Read.Directory, RoleAssignmentSchedule.ReadWrite.Directory, RoleEligibilitySchedule.Read.Directory,
RoleManagement.Read.All, RoleManagement.Read.CloudPC, RoleManagement.Read.Directory, RoleManagement.ReadWrite.Directory, SharePointTenantSettings.Read.All, Sites.Read.All, Subscription.Read.All, Team.ReadBasic.All, TeamMember.Read.All, User.Read, User.Read.All, User.ReadBasic.All, UserAuthentica
tionMethod.ReadWrite.All, WindowsUpdates.ReadWrite.All].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests//userConsentRequests//approval/stages/$count
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; nb-NO),PowerShell/5.1.22621.3880
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 14703fb8-f1a6-4361-a174-b04edbc9bea8
client-request-id : 04e58b3d-a16e-4331-906a-0f0575ca87b0
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Norway East","Slice":"E","Ring":"2","ScaleUnit":"000","RoleInstance":"OSL0EPF00000591"}}
Date : Thu, 18 Jul 2024 08:21:57 GMT
Body:
{
"error": {
"code": "",
"message": "No HTTP resource was found that matches the request URI 'https://api.accessreviews.identitygovernance.azure.com/accessReviews/v2.0/me/appConsentRequests('')/userConsentRequests('')/approval/stages/$count?ring=
2'.",
"innerError": {
"date": "2024-07-18T08:21:57",
"request-id": "",
"client-request-id": ""
}
}
}
Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount : No HTTP resource was found that matches the request URI 'https://api.accessreviews.identitygovernance.azure.com/accessReviews/v2.0/me/appConsentRequests('')/userConsentRequests('')/approval/stages/$count?ring=2'.
Status: 404 (NotFound)
ErrorCode:
Date: 2024-07-18T08:21:57
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 1
client-request-id :
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Norway East","Slice":"E","Ring":"2","ScaleUnit":"000","RoleInstance":"OSL0EPF00000591"}}
Date : Thu, 18 Jul 2024 08:21:57 GMT
At line:1 char:1
DEBUG: [CmdletEndProcessing]: - Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount end processing.
The text was updated successfully, but these errors were encountered: