403 Forbidden for learnringContent endpoint - Graph Api

Gulzar, Hafiz Muhammad 0 Reputation points

I successfully retrieved the token from from AzureAd which have the correct scopes, however getting 403-forbidden for learningContent endpoint only


User's image

Token works fine for other endpoints/roles (client credential flow) for application permissions however only learningContent endpoints gives 403 response.
User's image

Since LearningContent.Read.All and LearningContent.ReadWrite.All permissions are allowed for both delegated and application permissions. Again with delegated permissions / token, all other endpoints responds as it should, but leanringContent endpoints throws back 403 forbidden error.

User's image

NB: Application have admin consent for both delegated and application permissions.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
34,900 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gopinath Chennamadhavuni 2,426 Reputation points

    Hi Gulzar, Hafiz Muhammad,

    Hope you are doing well.

    As per the documentation, Graph API: GET /employeeExperience/learningProviders returns the list of "learningProvider" resources registered in Viva Learning for a tenant.

    As per the Microsoft Viva plans and pricing, M365 with E5 license we can avail only below 2 Viva apps by default.

    ·    Viva connections and

    ·    Viva Engage  

    Please refer the documentation for more about license details.

    Please refer the documentation for listed licenses can get access to VIVA Apps.

    To get the successful response from the graph API: GET /employeeExperience/learningProviders, we have below 2 options. We can't use it as a free (there is no trail for VIVA learning).

    1. “Integration with learning Management system” should be included into the plan.

    With the help of Add-ons option, you can get the access to Viva learning app into existing license. Please refer the below screen shot.
    Add-on reference link for Viva Learning: https://www.microsoft.com/en-in/microsoft-viva/learning 

    1. You can purchase the Microsoft Viva Suite plan to get access to all Viva Apps**.**

    You can get access to Viva learning app by purchasing any one of above plan/add-on.

    Also, can you please make sure that you have access to the learning provider ID that you are passing.

    I have valid license and access to learning provider ID, please find my below graph response.


    Please note that, APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments