Issue when enable Sharepoint provider for Graph API learning course assigment in Viva learning

Anh Ong 0 Reputation points
2026-09-07T11:02:42.05+00:00

We are integrating D365FO with viva learn to assign course to user from D365FO. I'm trying to assign a course to a user VIA Graph using the learningCourseAtivities https://learn.microsoft.com/en-us/graph/api/employeeexperienceuser-post-learningcourseactivities?view=graph-rest-1.0&tabs=http. The course is in the online SharePoint provider. Best I can get is an error stating that the provider needs to have sync enabled. Actual error " Make sure the provider has course activity sync enabled to ingest course activities".

{
    "error": {
        "code": "UnknownError",
        "message": "{\"code\":403,\"requestId\":\"[Moderator note: Personally Identifiable Information removed]\",\"message\":\"Forbidden\",\"details\":[{\"message\":\"There was an issue with your request. Make sure the provider has course activity sync enabled to ingest courseactivities.\"}]}",
        "innerError": {
            "date": "2026-09-07T09:50:54",
            "request-id": "[Moderator note: Personally Identifiable Information removed]",
            "client-request-id": "[Moderator note: Personally Identifiable Information removed]"
        }
    }
}

image

When we try to update it from graph API, we get this error

{
    "error": {
        "code": "forbidden",
        "message": "Insufficient permission to modify the data for this provider.",
        "innerError": {
            "date": "2026-09-07T10:58:07",
            "request-id": "[Moderator note: Personally Identifiable Information removed]",
            "client-request-id": "[Moderator note: Personally Identifiable Information removed]"
        }
    }
}

We already have learningProvider.Read.WriteAll assigned, use admin account but it seems to not allow to update this provider. Can you help to let us know if we need anything to enable the graph API assigment for sharepoint provider like premium licence? Thank you

Microsoft 365 and Office | Microsoft Viva | Viva Learning
0 comments No comments

1 answer

Sort by: Most helpful
  1. Darren Bruce 1,490 Reputation points Independent Advisor
    2026-09-07T12:38:37.4833333+00:00

    Dear @Anh Ong,

    Please understand that this forum is a public platform, and moderators will modify your question to cover your personal information in the description. Please notice to hide these personal or organization information next time you post error or some information to protect personal data. 

    Based on the behavior and error message, this appears to be related to the capabilities of the SharePoint provider in Microsoft Viva Learning, rather than a Graph permission issue. The API is specifically reporting that course activity sync is not enabled for the provider, even though the required Graph permissions have been granted.

    I have not found documentation confirming that SharePoint-hosted learning content supports course assignment/activity ingestion through the learningCourseActivities API. The available documentation primarily covers content ingestion and discovery scenarios for the SharePoint provider

    If this is affecting to your workflow , I recommend opening a support ticket with Microsoft Support so the Viva Learning product team can confirm whether Graph-based course assignment is supported for the SharePoint provider, or whether the current behavior is an expected product limitation.

    You can contact Microsoft Support team using the options provided here:

    Please understand that as forum user, my primary goal is to provide helpful guidance and support through general troubleshooting steps. While I don’t have access to internal systems or test devices required to resolve backend issues, I truly appreciate your understanding of these limitations. I genuinely hope the information I share helps guide you in the right direction.

    If you have any other questions, please feel free to reach out.


    Note : Follow the steps in the " forum documentation " to enable email notifications if you wish to receive email notifications related to this topic.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.