The following forum(s) have migrated to Microsoft Q&A (Preview): Azure Active Directory!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
GraphAPI beta (calls and online meetings) RRS feed

  • Question

  • Hello,

    I got an error:

    HTTP/1.1 403 Forbidden
    Cache-Control: private
    Content-Type: application/json
    request-id: 3af01d59-1441-489b-97a6-59e4bfecd156
    client-request-id: 3af01d59-1441-489b-97a6-59e4bfecd156
    x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","RoleInstance":"AGSFE_IN_21","ADSiteName":"WEU"}}
    Duration: 166.6818
    Strict-Transport-Security: max-age=31536000
    Date: Mon, 09 Sep 2019 15:13:37 GMT
    Content-Length: 257

    {
      "error": {
        "code": "7504",
        "message": "Insufficient enterprise tenant permissions, cannot access this API.",
        "innerError": {
          "request-id": "3af01d59-1441-489b-97a6-59e4bfecd156",
          "date": "2019-09-09T15:13:38"
        }
      }
    }

    with the request:

    POST https://graph.microsoft.com/beta/app/calls HTTP/1.1
    Content-Type: application/json
    Authorization: Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlQ4eHBzMUp4emU3MEZJeVFvREJNazgwOHhfYTkteTdmc0tndWVDQjRsQ2MiLCJhbGciOiJSUzI1NiIsIng1dCI6ImllX3FXQ1hoWHh0MXpJRXN1NGM3YWNRVkduNCIsImtpZCI6ImllX3FXQ1hoWHh0MXpJRXN1NGM3YWNRVkduNCJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8zNDE3YWZjMi01MTRlLTRjMDQtYjgyNy0zZjBiNmU3MDU3NTMvIiwiaWF0IjoxNTY4MDQxNzE3LCJuYmYiOjE1NjgwNDE3MTcsImV4cCI6MTU2ODA0NTYxNywiYWlvIjoiNDJGZ1lOQ2I1clI1Z3BxTTNRbWRvcE1OeTZKZUF3QT0iLCJhcHBfZGlzcGxheW5hbWUiOiJhY29uaXRhc0VjaG9Cb3QiLCJhcHBpZCI6IjAwNWE5YzQ4LTcxZWQtNGUwYy1hYTAzLTA0N2U2Zjc3MDY5MiIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzM0MTdhZmMyLTUxNGUtNGMwNC1iODI3LTNmMGI2ZTcwNTc1My8iLCJ0aWQiOiIzNDE3YWZjMi01MTRlLTRjMDQtYjgyNy0zZjBiNmU3MDU3NTMiLCJ1dGkiOiI3QS1zNmx5c2FVRzc4eEQ1Ym9WQUFBIiwidmVyIjoiMS4wIiwieG1zX3RjZHQiOjE1MjgxNzc5MjN9.1tGWOadOmzb2PSm49wjmNbXdTdhSwqHzNZLFFHdeiItzFXLz2hcEMRUWUztPM9gvyNUR42w7O7LVGONjrKVHOcdvoEKgSYiMFO2tOJRvFFwMcei6F__ZSwdApKHmb4pBBu6GIbZx1ov2JRnGzEGOl0ZLoD9X01Vd0Nao6pfdup7dciOGl0O9Hq3FpAxC23phsPc2GrQ-r-RGH1vhEV2hVePpiLCb10936Yrbox0Ctx7st3kfMXUZAWHzMlhHqEHjnO9W8QXCuK4ukVf5ljw4mqCVnmoWfsWUhwtddEx3c_RKG9Vb7JYJbWu-tYxH0O1rZ2B18iJjJYfo4TgrVmEPfA
    Host: graph.microsoft.com
    Content-Length: 338
    Expect: 100-continue

    {
      'source': {
        'identity': {
            'application': {
              'id': '005a9c48-71ed-4e0c-aa03-047e6f770692'
            }
        },
      },
      'subject': 'Test Call',
      'targets': [
        {
          'identity': {
            'phone': {
              'id': '09067092518',
              'displayName': 'Nina Home'
            }
          }
        }
      ]
    }

    Could not find any explanation.

    • Moved by Bryan Trach - MSFT Monday, September 9, 2019 4:47 PM Question is related to GraphAPI and not Azure App Service Product
    Monday, September 9, 2019 3:16 PM

All replies

  • It seems you haven't provided proper permissions to the application. You need to provide at least one of the following permissions - Calls.JoinGroupCallsasGuest.All, Calls.JoinGroupCalls.All, Calls.Initiate.All, Calls.InitiateGroupCalls.All
    Refer to the documentation.
    Also, you need to send calls object as POST to the endpoint.  Please refer to Calls object documentation.
    Monday, September 9, 2019 8:58 PM
  • Please let me know if you find above reply useful. If yes, do click on 'Mark as answer' link in above reply. This will help other community members facing similar query to refer to this solution. Thanks.
    Monday, September 16, 2019 11:39 PM
  • Hello,

    all required permissions were provided to the application and sure I read the needed documentation.

    Tuesday, September 17, 2019 5:45 AM
  • I am seeing this same error. Did you ever find a resolution?

    Keith Kabza

    Monday, December 2, 2019 6:16 PM
  • No, I didn't.
    Tuesday, December 3, 2019 5:54 AM