none
Using Microsoft graph to read all users calendars RRS feed

  • Question

  • Hi Friends,

    i want to check, if it is possible to get other users outlook calendar events from graph API and show in SharePoint online using SPFX?

    if yes, please share helpful article.

    and if it is not possible using graph API, any other way?

    Thanks

    Pankaj

    Friday, April 24, 2020 9:52 AM

All replies

  • User and group search capabilities allow the app to search for any user or group in an organization's directory by performing queries against the /users or /groups resource set (for example, https://graph.microsoft.com/v1.0/users). Both administrators and users have this capability; however, guest users do not.

    If the signed-in user is a guest user, depending on the permissions an app has been granted, it can read the profile of a specific user or group (for example, https://graph.microsoft.com/v1.0/users/241f22af-f634-44c0-9a15-c8cd2cea5531); however, it cannot perform queries against the /users or /groups resource set that potentially return more than a single resource.

    With the appropriate permissions, the app can read the profiles of users or groups that it obtains by following links in navigation properties; for example, /users/{id}/directReports or /groups/{id}/members.
    Friday, April 24, 2020 10:18 AM
  • i have used below code  get anand kumar outlook events. i global administrator on office portal.

    this.context.msGraphClientFactory.getClient().then((client: MSGraphClient): void => {client.api('/users/anand.kumar@dev1000.onmicrosoft.com/events')

    but still received access denied issue. i have given Application access to GRAPH API in azure portal.

    please let me know if i am missing any steps or there is another way available to do same in SPFX.

    Thanks

    Pankaj


    Tuesday, April 28, 2020 7:39 AM