Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage fails with No HTTP resource was found that matches the request URI #2852

Closed
GeirFJ opened this issue Jul 18, 2024 · 2 comments
Labels
no-recent-activity Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close

Comments

@GeirFJ
Copy link

GeirFJ commented Jul 18, 2024

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

  • Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalSt ...
  •   + CategoryInfo          : InvalidOperation: ({ AppConsentReq... , Headers =  }:<>f__AnonymousType157`5) [Get-MgIdentityG...lStageCount_Get], Exception
      + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount_Get
    

DEBUG: [CmdletEndProcessing]: - Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount end processing.

</details>


### Configuration

_No response_

### Other information

_No response_
@GeirFJ GeirFJ added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jul 18, 2024
@timayabi2020 timayabi2020 added Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jul 25, 2024
@timayabi2020
Copy link
Contributor

Hi @GeirFJ thank you for reporting this issue. From the debug information, it clearly indicates that the issue is with the API and unfortunately for API related issues/questions we are not best placed to give an answer. Kindly raise an issue here https://developer.microsoft.com/en-us/graph/support so that the API owner can respond to it.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity Service issue status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close
Projects
None yet
Development

No branches or pull requests

2 participants