Student impersonation thru API

Hello, is there a way to impersonate programmatically so we may submit on behalf of a student through the API?

Kind Regards,

Gerald Truong @ Edlink.

Answers

  • Derik.P.149
    Derik.P.149 Posts: 23 Analytics Builder Transition

    Can you go more into the action that you'd like to do and why you'd like to impersonate a user for it?

  • Gerald.T.717
    Gerald.T.717 Posts: 9 🌱

    Hi Derik,

    We would like to post. a submission on behalf of the student through the API. So far the only endpoint we could find is:

    POST /d2l/api/le/(version)/(orgUnitId)/dropbox/folders/(folderId)/submissions/mysubmissions/

    Which needs the right user context…

  • Allard.N.654
    Allard.N.654 Posts: 21 🧭
    edited December 2023

    We have the same challenge, but haven't found a way yet. The most common use case is to have an external tool to create a submission (which could involve offline student interaction, i.e. there is no user session), send it to Brightspace and let the teacher grade/annotate it there. This way it also resides within the course instead of some external system.

    I'm not sure if impersonation is the way to go, but an endpoint specifically for this use case would be very useful. For us this would restore some functionality from our previous LMS.

    Similar PIE items: D6306, D8732 (not API, but same functionality)

  • Gerald.T.717
    Gerald.T.717 Posts: 9 🌱

    Thank you @Allard.N.654 for that info.