You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to retrieve permissionDetails information from the get permission endpoint, but it seems they are not being returned.
If we specify other fields or * it works fine. I tried to send "permission details" in fields using different formats, including the one specified here (permissionDetails[].permissionType), but this one raises an exception.
Is there another way to retrieve permission details? I'm interested in the inherited attribute.
Thanks!
Environment details
OS: MacOS 14.6.1 (23G93)
Ruby version: 3.3.4
Gem name and version: google-apis-drive_v3 (0.55.0)
Steps to reproduce
Add a new file to your drive
Set some permissions
Try to retrieve info using the Ruby client
Code example
drive_service.get_permission(file_id,permission_id,fields: "type")# => #<Google::Apis::DriveV3::Permission:0x0000000154e90340 @type="user">drive_service.get_permission(file_id,permission_id,fields: "*")# `deleted, display_name, email_address, id, kind, pending_owner, photo_link, role, type` set to the Permission object, but not permission_detailspermission=drive_service.get_permission(file_id,permission_id,fields: "permission_details")# => #<Google::Apis::DriveV3::Permission:0x0000000155b71690>permission.permission_details# => nildrive_service.get_permission(file_id,permission_id,fields: "permissionDetails[].permissionType")# invalidParameter: Invalid field selection permissionDetails[].permissionType (Google::Apis::ClientError)
The text was updated successfully, but these errors were encountered:
Hello!
I'm trying to retrieve
permissionDetails
information from the get permission endpoint, but it seems they are not being returned.If we specify other fields or
*
it works fine. I tried to send "permission details" infields
using different formats, including the one specified here (permissionDetails[].permissionType), but this one raises an exception.Is there another way to retrieve permission details? I'm interested in the
inherited
attribute.Thanks!
Environment details
Steps to reproduce
Code example
The text was updated successfully, but these errors were encountered: