View SPO calendar from external website

Jean Bisson 21 Reputation points
2021-09-20T16:10:02.193+00:00

Hi,

I'm trying to find a way to show a read-only version of the calendar in SPO to an external website/webapp.
Or if it's possible to view the calendar page in read-only without sign-in.

From what I found so far, I have to use Microsoft Graph api to get the calendar events in json and then I'd have to re-build a calendar on the webapp, possibly with a plugin of some sort.

If I sign in to graph explorer, I always get resource not found for anything calendar or email related. If it was a permission issue wouldn't it be access denied or something?
Permissions:
Mail.Read, Mail.ReadBasic and Mail.ReadWrite "consented" in Mail.
Calendars, all 4 are "consented" in Calendars.
Maybe I need the APIConnectors.Read.All and/or APIConnectors.ReadWrite.All?

Any suggestions or links that could help me learn how achieve this?

Thank you.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,742 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,686 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-09-21T01:58:09.07+00:00

    Hi @Jean Bisson ,

    For SPO calendar, it's just a special list in SharePoint site. To get the events in SPO calendar, it's the same as getting listItem in a list.

    To use MS Graph api to get listitem, you should use get listItem method. Please refer to this article for more: https://learn.microsoft.com/en-us/graph/api/resources/listitem?view=graph-rest-1.0

    And you need to grant Sites.Read.All permission.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful