如何知道用户是否可以从Graph API上预订Office 365的房间

发布于 2025-02-04 05:04:29 字数 96 浏览 5 评论 0 原文

是否可以知道用户是否有权使用图形API预订会议室?

我需要从后端预订房间。今天,如果用户无权预订房间,他会收到拒绝电子邮件。 我想在图表API预订之前检查他的授权。

Is it possible to know if a user has the right to book a meeting room with the Graph API?

I need to book rooms from my backend. Today, if the user does not have the right to book the room, he receives a rejection email.
I would like to check his authorization before booking from the graph api.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风挽心 2025-02-11 05:04:29

至少您可以致电 getschedule 端点为指定时间段的用户,分布列表或资源(房间或设备)的收集收集获得免费/繁忙的可用性信息。

POST https://graph.microsoft.com/v1.0/me/calendar/getSchedule

在请求中,主体指定您要预订的房间以及期间开始和结束的日期,时间和时区。

{
    "schedules": [
        "[email protected]",
        "[email protected]"
    ],
    "startTime": {
        "dateTime": "2022-06-02T01:00:00",
        "timeZone": "Central Europe Standard Time"
    },
    "endTime": {
        "dateTime": "2022-06-02T18:00:00",
        "timeZone": "Central Europe Standard Time"
    },
    "availabilityViewInterval": 60
}

该响应将包含 schedule noreferrer“> SACTEHININFORMATION?

At least you can call getSchedule endpoint to get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period.

POST https://graph.microsoft.com/v1.0/me/calendar/getSchedule

In request body specify the rooms you want to book and the date, time, and time zone that the period starts and ends.

{
    "schedules": [
        "[email protected]",
        "[email protected]"
    ],
    "startTime": {
        "dateTime": "2022-06-02T01:00:00",
        "timeZone": "Central Europe Standard Time"
    },
    "endTime": {
        "dateTime": "2022-06-02T18:00:00",
        "timeZone": "Central Europe Standard Time"
    },
    "availabilityViewInterval": 60
}

The response will contain a collection of scheduleInformation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文