SOLVED

Back end management tool for Shift?

%3CLINGO-SUB%20id%3D%22lingo-sub-2334165%22%20slang%3D%22en-US%22%3EBack%20end%20management%20tool%20for%20Shift%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2334165%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20now%20testing%20Shift%20in%20a%20small%20team.%20We%20need%20our%20staffs%20clock-in%2Fclock-out%20and%20make%20a%20record%20every%20working%20day.%20Shift%20is%20working%20as%20expected.%3C%2FP%3E%3CP%3EHowever%20I%20cannot%20find%20any%20function%2C%20API%20or%20document%20about%20back%20end.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20could%20I%20export%20the%20clocked-schedule%20for%20entire%20company%20(500%2B%20staffs%20in%20same%20domain)%3F%20I%20can%20only%20export%20my%20team's%20clocked%20schedule.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20could%20I%20create%20schedule%20for%20entire%20company%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2334165%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eshift%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2336256%22%20slang%3D%22en-US%22%3ERe%3A%20Back%20end%20management%20tool%20for%20Shift%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2336256%22%20slang%3D%22en-US%22%3EThere's%20a%20set%20of%20Shift%20endpoints%20as%20part%20of%20the%20Graph%20API%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fschedule-list-shifts%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fschedule-list-shifts%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

We are now testing Shift in a small team. We need our staffs clock-in/clock-out and make a record every working day. Shift is working as expected.

However I cannot find any function, API or document about back end.

 

For example, could I export the clocked-schedule for entire company (500+ staffs in same domain)? I can only export my team's clocked schedule. 

 

Also could I create schedule for entire company?

 

3 Replies
best response confirmed by ThereseSolimeno (Microsoft)
Solution
Dear Vasil,
Do you know what kind of permission is required for this API? The document mentioned [Application Schedule.Read.All, Schedule.ReadWrite.All].
I checked my API permission have both of them. I checked against JWT token and confirmed I have the permission.

However when I called
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/teams/$TeamId/schedule/shifts" -Headers $Headers
it returns 403 error.
It works if I called:
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/teams/$TeamId" -Headers $Headers
If you are running in the delegate permissions model, try making the account an owner of the given team. if you need to cover all teams in the company, best run it via application permissions.