Hi Oliver, Andrea,
I recreated this scenario in my environment and successfully retrieved all the shifts for both scheduling groups. Please verify if the shifts that are missing in the response from the /schedule/shifts endpoint are open shifts; if so, those shifts are retrieved by a different endpoint, /schedule/openshifts.
Please ensure to provide Schedule.Read.All permission to access this resource.
Please refer attached screenshot for reference:
- Shifts screenshot showing 1 Open shift and 6 user shifts:
- Graph API to fetch all user shifts for all scheduling groups:
1.
Graph API call to fetch open shifts
For details, please refer below:
https://learn.microsoft.com/en-us/graph/api/resources/openshift?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/api/resources/shift?view=graph-rest-1.0
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".