Hello,
I'm currently working with Server-to-Server Oauth2 and have run into an issue pulling enrollment. I cannot get enrollments where a user's role is "Student", with the exception of the Organization. This is limited to calls using the /d2l/api/lp/ routes. Our Service User has been given full permissions to everything while we try to figure this out.
For Example, say I have a user who has the student role for the organisation, and is enrolled in the following "Course Offerings": A as "Course Supervisor", B as "Course Supervisor", C as "Student", and D as "Student".
If I do the call GET /d2l/api/lp/(version)/enrollments/users/(userId)/orgUnits it will return the organization and courses A and B only. There are no other results to be pulled using the Bookmark either.
If I then do the call GET /d2l/api/lp/(version)/enrollments/orgUnits/(orgUnitId)/users/ on course C, the user does not appear in the list; Only users with other roles appear (ex. Administrator, Instructor, Course Supervisor). However, if I use the classlist API call GET /d2l/api/le/(version)/(orgUnitId)/classlist/ for Course C, it returns the classlist, including the users with the role Student.
Is there something specific that the Learning Platform api needs but the Learning Environment API does not? What's strange to me is that it's the only role that isn't being pulled for those enrolment calls (we have like 6+ roles set up).