azure active directory – Updating App Registration’s Configured permission without overwritten existing values
I’m trying to update the “Configured permissions” of a given App Registration (Target App), with a permission offered by another App Registration (Source App). Source App exposes an API using user_impersonation. In fact, I have several Source Apps exposing APIs, which are added in Target App’s Configured permissions.
Everything goes fine when updating Target App’s Configured permissions through Azure portal. It means that already added permissions remain, and Source App’s exposed permission is added. However, if I try to use Graph API, Target App’s Configured permissions is updated so that only Source App’s exposed permission remains. Previously existing permissions are moved to “Other permissions granted for
To restore the previous state, I have to add again all previously existing permissions.
This is how I’m updating Target App’s Configured permissions using Graph API:
$ curl --silent -X PATCH -H "Authorization: Bearer ${TOKEN}" -H "Content-Type:application/json" \
-d '{"requiredResourceAccess":[{"resourceAppId":"","resourceAccess":[{"id":"","type": "Scope"}]}]}' \
https://graph.microsoft.com/v1.0/applications/
According to this link, the call above is fine.
Any suggestions on how to do the update so that Target App’s Configured permission is not overwritten?
Read more here: Source link
