Why does GET /d2l/api/le/(version)/(orgUnitId)/calendar/events/user/ return data for more than one

Answers
-
So, the route you are calling "Retrieves all the calendar events for a specified user’s explicit enrollments within the organization containing the specified org unit.", so using the orgunit, we retrieve all enrollments for the organization containing that org unit, and then all calendar events associated to all those org units. I agree that it's confusingly worded. I think in order to accomplish what you're looking to do, you need to call this route with the credentials of the user whom you would like to get events for.
-
Thank you for the quick response and confirming my thoughts Joseph. The page I'm writing will be used in our student website to display any upcoming events and the page will not have access to the students credentials to utilize the other Calendar events. My current thought is since calling one org unit with this endpoint will return all enrollment calendar data for a student id that this solution will work fine.
Thanks again for your input!
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat