【发布时间】:2018-03-03 05:17:12
【问题描述】:
我认为我已经应用了所有必要的范围/请求了以下必要的授权:
"https://www.googleapis.com/auth/admin.directory.customer.readonly",
"https://www.googleapis.com/auth/admin.directory.domain.readonly",
"https://www.googleapis.com/auth/admin.directory.user.readonly"
我能够成功地在 Google 目录中查询用户列表,但是一旦我开始传递 show_deleted: "true" 我就会得到以下信息:
Caught error forbidden: Not Authorized to access this resource/api
Error - #<Google::Apis::ClientError: forbidden: Not Authorized to access this resource/api>
Google::Apis::ClientError: forbidden: Not Authorized to access this resource/api
我在 API documentation 中找不到任何表明我需要请求不同的授权类型才能删除用户的内容。
【问题讨论】:
-
你能提供代码 sn-p 你将 showDeleted 设置为 true 吗?
标签: google-admin-sdk