locked
Microsoft Graph -Insufficient enterprise tenant permissions, cannot access this API. RRS feed

  • Question

  • All,

    I'm receiving the following error when trying to create a call bot that calls Microsoft Graph API.

    I have added all of the following permissions:

    Calls.JoinGroupCallAsGuest.All
    <button aria-controls="flyout3" aria-expanded="false" aria-label="more option menu" class="f1enh5kk" role="button" style="background-image:none;background-background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-width:0px;border-style:initial;border-color:initial;cursor:pointer;font:inherit;height:2.28571rem;outline:none;width:2.28571rem;"></button>
    Calls.JoinGroupCall.All
    <button aria-controls="flyout4" aria-expanded="false" aria-label="more option menu" class="f1enh5kk" role="button" style="background-image:none;background-background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-width:0px;border-style:initial;border-color:initial;cursor:pointer;font:inherit;height:2.28571rem;outline:none;width:2.28571rem;"></button>
    Calls.InitiateGroupCall.All
    <button aria-controls="flyout5" aria-expanded="false" aria-label="more option menu" class="f1enh5kk" role="button" style="background-image:none;background-background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-width:0px;border-style:initial;border-color:initial;cursor:pointer;font:inherit;height:2.28571rem;outline:none;width:2.28571rem;"></button>
    Calls.Initiate.All
    <button aria-controls="flyout6" aria-expanded="false" aria-label="more option menu" class="f1enh5kk" role="button" style="background-image:none;background-background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-width:0px;border-style:initial;border-color:initial;cursor:pointer;font:inherit;height:2.28571rem;outline:none;width:2.28571rem;"></button>
    Calls.AccessMedia.All
    <button aria-controls="flyout7" aria-expanded="false" aria-label="more option menu" class="f1enh5kk" role="button" style="background-image:none;background-background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-width:0px;border-style:initial;border-color:initial;cursor:pointer;font:inherit;height:2.28571rem;outline:none;width:2.28571rem;"></button>
    CallRecords.Read.All

    fail: VoiceRecorderAndPlaybackBot[1742746998]
          2020-07-06T23:05:11.5197Z 00000000-0000-0000-0000-000000000000 pid:23658 tid:47 (Bot.cs:247 NotificationProcessor_OnNotificationReceived):
          Caught an Exception running the task: Error processing notification /communications/calls/be1f0400-731f-489a-a110-5457d9a040c8 with scenario e5b6e28c-e545-4638-8f32-d8ff8a4e8fbf
          exception: Code: 7504
          Message: Insufficient enterprise tenant permissions, cannot access this API.
          Inner error:
    AdditionalData:
    date: 2020-07-06T23:05:11
    request-id: 2df32658-90f2-4b97-a39e-5f18ed3d2063

          StackTrace:    at Microsoft.Graph.Communications.Client.Transport.GraphAuthClient.ValidateResponseAsync(HttpResponseMessage response)
             at Microsoft.Graph.Communications.Client.Transport.GraphAuthClient.SendHttpRequestAsync[T1,T2](IGraphRequest`1 graphRequest, CancellationToken cancellationToken)
             at Sample.Common.Transport.GraphClientExtensions.SendAsync[T](IGraphClient client, IBaseRequest request, RequestType requestType, String tenant, Guid scenarioId, CancellationToken cancellationToken) in /Users/benjaminharvey/Desktop/microsoft-graph-comms-samples-master/Samples/Common/Sample.Common/Transport/GraphClientExtensions.cs:line 107
             at Sample.VoiceRecorderAndPlaybackBot.Bot.Bot.BotRecordsIncomingCallAsync(String callId, String tenantId, Guid scenarioId) in /Users/benjaminharvey/Desktop/microsoft-graph-comms-samples-master/Samples/V1.0Samples/StatelessSamples/VoiceRecorderAndPlaybackBot/Bot/Bot.cs:line 456
             at Sample.VoiceRecorderAndPlaybackBot.Bot.Bot.NotificationProcessor_OnNotificationReceivedAsync(NotificationEventArgs args) in /Users/benjaminharvey/Desktop/microsoft-graph-comms-samples-master/Samples/V1.0Samples/StatelessSamples/VoiceRecorderAndPlaybackBot/Bot/Bot.cs:line 310
             at Sample.Common.CommonUtilities.ForgetAndLogExceptionAsync(Task task, IGraphLogger logger, String description, String memberName, String filePath, Int32 lineNumber) in /Users/benjaminharvey/Desktop/microsoft-graph-comms-samples-master/Samples/Common/Sample.Common/CommonUtilities.cs:line 40

                                        <link href="https://kit-free.fontawesome.com/releases/latest/css/free.min.css" media="all" rel="stylesheet" /><iframe frameborder="none" id="sidePane" src="chrome-extension://egdlmbioafdidbljnampdodjfnfjbpic/popup.html?url=https://social.msdn.microsoft.com/Forums/en-US/newthread?forum=WindowsAzureAD" style="height:100%;width:0px;;top:0px;right:0px;z-index:2147483647;"></iframe>
    Wednesday, July 8, 2020 8:03 AM

Answers

All replies