Skip to main content

accessproposals

Creates, updates, deletes, gets or lists an accessproposals resource.

Overview​

Nameaccessproposals
TypeResource
Idgoogleworkspace.drivev3.accessproposals

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
createTimestring (google-datetime)The creation time.
fileIdstringThe file ID that the proposal for access is on.
proposalIdstringThe ID of the access proposal.
recipientEmailAddressstringThe email address of the user that will receive permissions, if accepted.
requestMessagestringThe message that the requester added to the proposal.
requesterEmailAddressstringThe email address of the requesting user.
rolesAndViewsarrayA wrapper for the role and view of an access proposal. For more information, see Roles and permissions.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfileId, proposalIdRetrieves an access proposal by ID. For more information, see Manage pending access proposals.
listselectfileIdpageSize, pageTokenList the access proposals on a file. For more information, see Manage pending access proposals. Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.
resolveexecfileId, proposalIdApproves or denies an access proposal. For more information, see Manage pending access proposals.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fileIdstring
proposalIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Retrieves an access proposal by ID. For more information, see Manage pending access proposals.

SELECT
createTime,
fileId,
proposalId,
recipientEmailAddress,
requestMessage,
requesterEmailAddress,
rolesAndViews
FROM googleworkspace.drivev3.accessproposals
WHERE fileId = '{{ fileId }}' -- required
AND proposalId = '{{ proposalId }}' -- required
;

Lifecycle Methods​

Approves or denies an access proposal. For more information, see Manage pending access proposals.

EXEC googleworkspace.drivev3.accessproposals.resolve
@fileId='{{ fileId }}' --required,
@proposalId='{{ proposalId }}' --required
@@json=
'{
"role": "{{ role }}",
"view": "{{ view }}",
"action": "{{ action }}",
"sendNotification": {{ sendNotification }}
}'
;