错误将Google Workspace迁移到O365-日历API错误
我正在尝试将从Google Workspace迁移到MS365。我已经尝试了MS的每种推荐方法;自动,手动和PowerShell。对于每个人,我都会收到相同的错误消息
移民后 uri = https://www.googleapis.com/calendar/v3/users/me/calendarlist?maxResults = 250响应= {“ error”:{“ code”:403,message'severse':403,“消息”:在项目206754733531中使用或禁用它。 =“ nofollow noreferrer”> https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=2067547333531 retry。
=“ nofollow noreferrer 几分钟以促进我们的系统并重试的行动。”
“错误”:[{“消息”:“ Google Calendar api之前尚未在206754733531或已禁用项目中使用。 calendar-json.googleapis.com/overview?project=206754733531然后重试,如果您最近启用了此API,请等待几分钟,以便采取行动以传播我们的系统和重试。 “:“ AccessNotConfigured”,“ ExtendedHelp”:“ https://console.developers.google.com”}],“ status”:“ permission_denied”,“ delect”,“ delect”:[{“@type”:type.googleapis。 com/google.rpc.help“,”链接“:[{“ description”:“ Google Developers console api activation”,“ url”:“ https://console.developers.google.com/apis/api/api/calendar-calendar-calendar--calendar-- json.googleapis.com/overview?project=206754733531“}]}},{“ @type”:“ type.googleapis.com/google.rpc.errinfo”,“原因。 - >远程服务器返回错误:(403)禁止。
当我遵循链接时
https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=206754733531**
,我会看到以下屏幕
与该错误的验证部分有关,我确保了这一点与该项目相关的服务已添加到该项目中,并根据MS的文档具有必要的权限。
我真的不知道我在做什么,或者出错了哪里。我对所有编程和开发都非常陌生,因此,如果这还不够细节,我深表歉意。我很高兴根据需要提供更多上下文/信息。
I'm trying to build out a migration from Google Workspace into MS365. I've tried each of MS's recommended methods; Automatic, Manual, and PowerShell. For each one, I get the same error message
post-migration
uri=https://www.googleapis.com/calendar/v3/users/me/calendarList?maxResults=250 response={ "error": { "code": 403, "message": "Google Calendar API has not been used in project 206754733531 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=206754733531 then retry.
If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"errors": [ { "message": "Google Calendar API has not been used in project 206754733531 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=206754733531 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "domain": "usageLimits", "reason": "accessNotConfigured", "extendedHelp": "https://console.developers.google.com" } ], "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Google developers console API activation", "url": "https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=206754733531" } ] }, { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "SERVICE_DISABLED", "domain": "googleapis.com", "metadata": { "consumer": "projects/206754733531", "service": "calendar-json.googleapis.com" } } ] } } . --> The remote server returned an error: (403) Forbidden.
When I follow the link
https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=206754733531**
I see the following screen
Relating to the PERMISSION_DENIED portion of the error, I have ensured that the ServiceAccount associated with the project has been added to the project and has the requisite permissions based on MS's documentation.
I really don't know what I'm doing incorrectly or where I'm going wrong. I'm incredibly new to all things programming and development so I apologize if this isn't nearly enough detail. I'm happy to provide more context/info as needed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
意味着Google日历API尚未在您的应用程序或已禁用中启用。
以下是要检查您问题的可能性的几件事。
我会仔细检查您实际上是否正在检查Google Developer Console上的正确项目,以了解所使用的服务帐户凭据。您可能已经为其他项目下载了一个文件,并检查了错误的项目。
之后,我将检查您对Google日历API的配额分配。单击该链接中的管理按钮。如果您的配额为0,则由于某种原因,Google已禁用您的访问权限。如果他们有检查您的电子邮件,他们应该告诉您为什么它被禁用。
如果您在Google开发人员控制台上创建了服务帐户,则以标准的Gmail用户登录,它将无法使用。服务帐户仅与Google Workspace一起使用Google日历API。
确保您要在打算访问的域上创建此服务帐户。 Google Calendar仅与带有域名范围委托设置的Google Workspace域帐户的服务帐户一起使用。建立委托执行Google Workspace workspace领域范围内权威的授权< /a>只需将范围更改为您正在使用的Google日历范围即可。
Means that the Google calendar api has not been enabled in your app or its disabled.
Here are a few things to check in order of likelihood of causing your issue.
I would double check that you are in fact checking the correct project on google developer console for the service account credentials you are using. You may have downloaded a file for a different project and are checking the wrong one.
After that i would check the quota allotment you have for the google calendar api. Click the manage button in that link. If your quota is 0 then google has disabled your access for some reason. If they have check your email they should have told you why it was disabled.
If you have created the service account on google developer console logged in as a standard gmail user its not going to work. Service accounts only work with google calendar api with google workspace.
Make sure that you are creating this service account on the domain that you intended to access. Google calendar only works with service accounts from google workspace domain accounts with domain wide delegation setup. Great guide in setting up delegation Perform Google Workspace Domain-Wide Delegation of Authority just change the scopes to the google calendar scope you are using.
我使用
在Exchange Admin Center中使用
自动化Google Workspace的配置
选项创建了GCP项目。但是,即使UI声称它在项目中添加了日历,联系人和Gmail API。但是,事实并非如此。我需要添加日历并手动联系API。然后它像魅力一样工作。
I created the GCP Project using the
Automate the configuration of your Google Workspace for migration
option in the Exchange Admin Center. However, even though the UI claimed that it added the Calendar, Contacts, and Gmail API to the Project. However, this was not the case.I needed to add the Calendar and Contacts APIs manually. Then it worked like a charm.