We are trying to get shifts from a team.
Error: MS-APP-ACTS-AS header needs to be set for application context requests
The flow process is as follows:
- Get oauth2 v2.0 token (Documentation: https://docs.microsoft.com/en-us/graph/auth-v2-service?context=graph%2Fapi%2Fbeta&view=graph-rest-beta)
- Get "installedApps" and get the one with "Teams" on it. (https://docs.microsoft.com/en-us/graph/api/teamsappinstallation-list?view=graph-rest-beta)
- Get ID from request above
- Query for Shift (https://docs.microsoft.com/en-us/graph/api/resources/schedule?view=graph-rest-beta)
The error happens on the last step.