An Office service that supports add-ins to interact with objects in Office client applications.
Hi Nataliia,
Yes, it can be confirmed your understanding is correct.
The Microsoft Graph endpoint: GET /users/{id | userPrincipalName}/settings/workHoursAndLocations does not support Application permissions. Microsoft Graph documentation stated only delegated permissions are supported and Application permissions are explicitly listed as "Not supported" for this API. Get workHoursAndLocationsSetting - Microsoft Graph beta
Therefore, even if your Service Principal is granted: it would still not be able to call the 'workHoursAndLocations' endpoint using an application-only token. The limitation is on the API itself rather than the permission assignment.
As an alternative, if your requirement is limited to retrieving users' standard working days, working hours, and time zone before creating Outlook events, you can use: This endpoint supports the MailboxSettings.Read Application permission and can be accessed using a Service Principal.
You may refer to the following Microsoft resources: Get user mailbox settings - Microsoft Graph v1.0 | Microsoft Learn
Hope this information would be helpful.
Should you have any further questions or need additional assistance, please feel free to share them in the comment below.
If the answer is helpful, please click 'Yes' and kindly upvote it. If you have any extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.