如需定义授予应用的访问权限级别,您需要确定并声明授权范围。授权范围是一个 OAuth 2.0 URI 字符串,其中包含 Google Workspace 应用名称、应用访问的数据类型以及访问权限级别。范围是您的应用对使用 Google Workspace 数据(包括用户的 Google 账号数据)的请求。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Choose Google Calendar API scopes\n\nThis document contains Google Calendar API-specific authorization and\nauthentication information. Before reading this document, be sure to read the\nGoogle Workspace's general authentication and authorization information at\n[Learn about authentication and authorization](/workspace/guides/auth-overview).\n\nConfigure OAuth 2.0 for authorization\n-------------------------------------\n\n[Configure the OAuth consent screen and choose scopes](/workspace/guides/configure-oauth-consent)\nto define what information is displayed to users and app reviewers, and register\nyour app so that you can publish it later.\n\nCalendar API scopes\n-------------------\n\nTo define the level of access granted to your app, you need to identify and\ndeclare *authorization scopes*. An authorization scope is an OAuth 2.0 URI string\nthat contains the Google Workspace app name, what kind of data it accesses, and\nthe level of access. Scopes are your app's requests to work with Google Workspace data, including\nusers' Google Account data.\n\n\nWhen your app is installed, a user is asked to validate the scopes used\nby the app. Generally, you should choose the most narrowly focused scope\npossible and avoid requesting scopes that your app doesn't require. Users more\nreadily grant access to limited, clearly described scopes.\n| If your public application uses scopes that permit access to certain user data, it must complete a verification process. If you see **unverified\n| app** on the screen when testing your application, you must submit a verification request to remove it. Find out more about [unverified apps](https://support.google.com/cloud/answer/7454865) and get answers to [frequently asked questions about app verification](https://support.google.com/cloud/answer/9110914) in the Help Center.\n\nThe Calendar API supports the following scopes:\n\n| Scope | Meaning |\n|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| `https://www.googleapis.com/auth/calendar` | See, edit, share, and permanently delete all the calendars you can access using Google Calendar. |\n| `https://www.googleapis.com/auth/calendar.readonly` | See and download any calendar you can access using your Calendar. |\n| `https://www.googleapis.com/auth/calendar.freebusy` | View your availability in your calendars. |\n| `https://www.googleapis.com/auth/calendar.events` | View and edit events on all your calendars. |\n| `https://www.googleapis.com/auth/calendar.events.readonly` | View events on all your calendars. |\n| `https://www.googleapis.com/auth/calendar.settings.readonly` | View your Calendar settings. |\n| `https://www.googleapis.com/auth/calendar.addons.execute` | Run as a Calendar add-on. |\n| `https://www.googleapis.com/auth/calendar.addons.current.event.read` | See the events you open in Google Calendar. |\n| `https://www.googleapis.com/auth/calendar.addons.current.event.write` | Edit the events you open in Google Calendar. |\n| `https://www.googleapis.com/auth/calendar.events.owned` | See, create, change, and delete events on Google calendars you own. |\n| `https://www.googleapis.com/auth/calendar.events.owned.readonly` | See the events on Google calendars you own. |\n| `https://www.googleapis.com/auth/calendar.events.freebusy` | See the availability on Google calendars you have access to. |\n| `https://www.googleapis.com/auth/calendar.app.created` | Make secondary Google calendars, and see, create, change, and delete events on them. |\n| `https://www.googleapis.com/auth/calendar.calendarlist` | See, add, and remove Google calendars you're subscribed to. |\n| `https://www.googleapis.com/auth/calendar.calendarlist.readonly` | See the list of Google calendars you're subscribed to. |\n| `https://www.googleapis.com/auth/calendar.calendars` | See and change the properties of Google calendars you have access to, and create secondary calendars. |\n| `https://www.googleapis.com/auth/calendar.calendars.readonly` | See the title, description, default time zone, and other properties of Google calendars you have access to. |\n| `https://www.googleapis.com/auth/calendar.acls` | See and change the sharing permissions of Google calendars you own. |\n| `https://www.googleapis.com/auth/calendar.acls.readonly` | See the sharing permissions of Google calendars you own. |\n| `https://www.googleapis.com/auth/calendar.events.public.readonly` | See the events on public calendars. |"]]