我目前正在开发一个小型管理应用程序,该应用程序应在特定的Microsoft日历中创建事件,但我只能以授权用户的身份来执行此操作。
是否可以选择仅知道userPrincipalName
来为此日历中的每个人创建活动?
{
"subject": "test",
"body": {
"contentType": "HTML",
"content": "Sample Text"
},
"start": {
"dateTime": "2019-04-04T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2019-04-04T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"displayName":"Testlocation"
}
}
https://graph.microsoft.com/v1.0/users/myPricipalName/calendar/events
有效,但仅对我有效。
整个文档有点不方便
答案 0 :(得分:1)
答案是肯定的,但是您对文档是正确的...
您必须执行以下步骤:
答案 1 :(得分:0)
最好的方法是获取应用程序令牌,该令牌已被授予写用户日历的权限。