I am using the Google Drive Activity API to query the activity of a team/shared drive.
The documentation says I can filter by detail.action_detail_case
. I am trying to filter on permissionChange
activity but I am getting the error:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
I can filter on other activity like detail.action_detail_case:RENAME
and detail.action_detail_case:MOVE
.
Change:
{
"itemName": "items/DRIVE_ID",
"filter": "detail.action_detail_case:CHANGE"
}
To:
{
"itemName": "items/DRIVE_ID",
"filter": "detail.action_detail_case:PERMISSION_CHANGE"
}
Where PERMISSION_CHANGE
is the permissionChange
from ActionDetail
.