Gmail
Gmail API and user management (This integration replaces the Gmail functionality in the GoogleApps API and G Suite integration).
Email · Gmail
Configuration parameters
adminEmail— Email of user with admin privileges (required)query— Events search queryqueryUserKey— Events user keygappsID— Immutable Google Apps IDisFetch— Fetch incidentsinsecure— Trust any certificate (not secure)proxy— Use system proxy settingsincidentType— Incident typefetch_time— First fetch timestamp, in days.fetch_limit— Maximum number of emails to pull per fetchlegacy_name— Use legacy attachment name
Commands (35)
-
gmail-add-delete-filterAdds a rule for email deletion by address.
-
gmail-add-filterAdds a new filter.
-
gmail-create-userCreates a new Gmail user.
-
gmail-delegate-user-mailboxAdds a delegate to the mailbox, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user and must be added using their primary email address, and not an email alias.
-
gmail-delete-mailDeletes an email in the user's mailbox.
-
gmail-delete-userDeletes a Gmail user.
-
gmail-forwarding-address-addCreates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority. The special value "me" can be used to indicate the authenticated user.
-
gmail-forwarding-address-getGets the specified forwarding address or a list of the forwarding addresses for the specified account.
-
gmail-forwarding-address-listLists the forwarding addresses for the specified account.
-
gmail-forwarding-address-removeDeletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority.
-
gmail-forwarding-address-updateUpdates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled.
-
gmail-get-attachmentsRetrieves attachments from a sent Gmail message.
-
gmail-get-autoreplyReturns the auto-reply message set for the user-account.
-
gmail-get-mailRetrieves the Gmail message sent to a specified user.
-
gmail-get-roleGets details of a specific role.
-
gmail-get-threadReturns all messages in a thread.
-
gmail-get-tokens-for-userLists all tokens associated with a specified user.
-
gmail-get-userGets information for a specified user.
-
gmail-get-user-rolesRetrieves a list of all Google roles for a specified user.
-
gmail-hide-user-in-directoryHides a user's contact information in the Global Directory, for example email address and profile information.
-
gmail-list-filtersLists all filters in a user's mailbox.
-
gmail-list-labelsLists all labels in the user's mailbox.
-
gmail-list-usersLists all Google users in a domain.
-
gmail-move-mailMoves an email to a different folder.
-
gmail-move-mail-to-mailboxMoves an email to a different mailbox.
-
gmail-remove-delegated-mailboxRemoves a delegate from the mailbox without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user using their primary email address, and not an email alias.
-
gmail-remove-filterRemoves a Filter.
-
gmail-revoke-user-roleRevokes a role for a specified Google user.
-
gmail-searchSearches for Gmail records for a specific Google user.
-
gmail-search-all-mailboxesSearches the Gmail records for all Google users. (For more than 2500 accounts, use with the `Search all mailboxes - Gmail with polling` playbook).
-
gmail-send-as-addCreates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This command is only available to service account clients who have been delegated domain-wide authority.
-
gmail-set-autoreplySets the auto-reply for the user. Note: If the body is not set, the current body will be deleted.
-
gmail-set-passwordSets the password for the user.
-
reply-mailReplies to a mail using Gmail.
-
send-mailSends mail using Gmail.