angularjs - Microsoft Graph api 403 access denied when reading other users -
i'm creating application in angular , nodejs , need able read user's list of events. right attempting use "https://graph.microsoft.com/v1.0/users/otherusername@companyurl.com/events" gives me 403 "access denied. check credentials , try again.". however, if use "https://graph.microsoft.com/v1.0/users/myusername@companyurl.com/events" works(as expect). question is, why when use outlook can use scheduling assistant see events "otherusername@companyurl.com" without being admin in application cannot see events due credentials?
the library i'm using connect microsoft graph api https://github.com/azuread/azure-activedirectory-library-for-js
the delegated permissions have set in azure are
- view users' email address
- sign users in
- read user contacts
- have full access user calendars
- read user calendars
- send mail user
- read directory data
- read users' basic profiles
- sign in , read user profile
application permissions (i understand these require admin)
- read calendars in mailboxes
any appreciated, thankyou.
fugal - design. can use findmeetingtimes api schedule meetings other users. can accomplished calendar.read permission. see http://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_findmeetingtimes more info.
for view user's calendar using /events endpoint, need special permission (something calendar.read.shared) still in process of adding. once add that, able use /events access calendar user has explicitly shared you. if want schedule meetings, findmeetingtimes should sufficient.
Comments
Post a Comment