0
votes

I am trying to update an application using Microsoft graph API, programmatically. Steps i performed as follows:

  1. Get an Access token programmatically by providing the user assertion.
  2. Execute "PATCH" request for updating the certificate.

Request URL: PATCH https://graph.microsoft.com/v1.0/applications/<-application obj ID->

  1. When i execute from graph explorer, request gets completed successfully.

  2. I get following error when done programmatically:

     {"error": {
     "code": "Authorization_RequestDenied",
     "message": "Insufficient privileges to complete the operation.",
     "innerError": {
       "date": "2020-11-04T11:47:48",
       "request-id": "132aba35-6d34-4940-8806-935ce581bd53",
       "client-request-id": "132aba35-6d34-4940-8806-935ce581bd53"
     }}}
    

I have granted following Application permissions for the app as shown in screenshot: enter image description here

Any other permissions needed to update an application? Thanks in advance.

1

1 Answers

0
votes

You are missing permission Application.ReadWrite.OwnedBy, Application.ReadWrite.All.please refer this document for more information

enter image description here