Share via

[microsoft-graph-*]

Oliver, Andrea 20 Reputation points
2024-09-09T16:17:56.46+00:00

we received the following error when trying to querying https://graph.microsoft.com/beta/teams/{teamid}/schedule/timeCards. we noticed that 'timeCards' is now in v1.0, not just beta. We were wondering if we need to update our API in order to gain access to our timeCard underlying data? Or if something else needs to be done? It worked fine at 7 am this morning, but we don't see anything posted on the API changelog.

{
    "error": {
        "code": "Forbidden",
        "message": "Missing scope permissions on the request. API requires one of 'Schedule.Read.All, Schedule.ReadWrite.All'. Scopes on the request 'Calendars.ReadWrite, Chat.Read, Chat.ReadBasic, Contacts.ReadWrite, DeviceManagementRBAC.Read.All, DeviceManagementServiceConfig.Read.All, DeviceManagementServiceConfig.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All, eDiscovery.Read.All, eDiscovery.ReadWrite.All, Files.ReadWrite.All, Group.ReadWrite.All, IdentityRiskEvent.Read.All, Mail.Read, Mail.ReadWrite, MailboxSettings.ReadWrite, Notes.ReadWrite.All, openid, People.Read, Place.Read, Presence.Read, Presence.Read.All, PrinterShare.ReadBasic.All, PrintJob.Create, PrintJob.ReadBasic, profile, Reports.Read.All, Sites.ReadWrite.All, Tasks.ReadWrite, User.EnableDisableAccount.All, User.Export.All, User.Read, User.Read.All, User.ReadBasic.All, User.ReadWrite, User.ReadWrite.All, email'",
        "innerError": {
            "date": "2024-09-09T16:13:15",
            "request-id": "703c3cc9-0aa4-4cda-a3ea-f48432609113",
            "client-request-id": "4d03e904-5a40-3d83-a165-09a99c927a79"
        }
    }
}
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-09-10T07:50:07.88+00:00

    Hi @Oliver, Andrea

    After searching, the /timeCards endpoint currently supports only the bate version, so please refer to this documentation when you use this endpoint.

    There is no information about this endpoint in the official v1.0 release.

    When using Auth code flow to get a token, you need to grant a permission of Schedule.Read.All or Schedule.ReadWrite.All, which you need to list in the scope parameter.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.