Can anyone help? I'm trying to clean up handling permission matches for non-inherited permissions
on My Drives and don't understand what I'm seeing in the ?????? line below.
Thanks,
Ross
Details of a My Drive
The only permissionDetail shows a non-inherited owner role; this is expected.
$ gam user testsimple show fileinfo root filepath fields id,name,mimetype,basicpermissions,permissiondetails fullpath
User:
tests...@domain.com, Show 1 Drive File/Folder
Drive Folder: My Drive (0AKUt4cJyLzY4Uk9PVA)
paths: 1
path: My Drive
id: 0AKUt4cJyLzY4Uk9PVA
mimeType: application/vnd.google-apps.folder
name: My Drive
permissions:
displayName: TESTxSIMPLE
deleted: False
domain:
domain.com
emailAddress:
tests...@domain.com
id: 10834698115409744147
permissionDetails:
inherited: False
permissionType: file
role: owner
role: owner
type: user
Details of a Document directly in the My Drive
The first permissionDetail shows an inherited writer role; where does this come from??????
The second permissionDetail shows a non-inherited owner role; this is expected.
$ gam user testsimple show fileinfo 1oc2CitqdpVyTw9DPUFrHNCQ-gUK4MQcfjoW_fkaDGa0 filepath fields id,name,mimetype,basicpermissions,permissiondetails fullpath
User:
tests...@domain.com, Show 1 Drive File/Folder
Drive File: TestDoc (1oc2CitqdpVyTw9DPUFrHNCQ-gUK4MQcfjoW_fkaDGa0)
paths: 1
path: My Drive/TestDoc
id: 1oc2CitqdpVyTw9DPUFrHNCQ-gUK4MQcfjoW_fkaDGa0
mimeType: application/vnd.google-apps.document
name: TestDoc
permissions:
displayName: TESTxSIMPLE
deleted: False
domain:
domain.com
emailAddress:
tests...@domain.com
id: 10834698115409744147
permissionDetails:
inherited: True
permissionType: file
role: writer
inherited: False
permissionType: file
role: owner
role: owner
type: user
----
Ross Scroggs
Ross.S...@gmail.com