-
Notifications
You must be signed in to change notification settings - Fork 252
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
Failed to update the requiredResourceAccess of mutiple applications #2142
Comments
Thanks for raising this @superff. Just to confirm, does this mean you are sending the same Any chance you can replicate the same when you create a new instance on each request? |
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. |
1 similar comment
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. |
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. |
Describe the bug
I am having trouble calling the
await graphClient.Applications[app.Id].PatchAsync
to update the API permission , akaRequiredResourceAccess
To Reproduce
Steps to reproduce the behavior:
the code is
Expected behavior
I want to update multiple apps' permission using the above code, however, I found it only works the first time and after the first call, the rest will all fail with 400 ODataError as below
Microsoft.Graph.Models.ODataErrors.ODataError: Property requiredResourceAccess.resourceAccess is invalid.
I tried both
scope
androle
as type, both are failingI am following this doc,https://learn.microsoft.com/en-us/graph/migrate-azure-ad-graph-configure-permissions?tabs=csharp%2Cupdatepermissions-azureadgraph-powershell#step-2-add-required-azure-ad-graph-permissions-to-your-app
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: