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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfileId, proposalIdRetrieves an AccessProposal by ID.
listselectfileIdpageToken, pageSizeList the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.
resolveexecfileId, proposalIdUsed to approve or deny an Access Proposal.

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 AccessProposal by ID.

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

Lifecycle Methods

Used to approve or deny an Access Proposal.

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