Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node interacts with the Google Analytics API, specifically targeting the "Admin (V1Alpha) - Account Access Binding" resource to update an existing account access binding. It allows users to modify access permissions for users within a Google Analytics account by updating the details of an access binding.

Common scenarios where this node is beneficial include:

  • Managing user access rights programmatically in Google Analytics accounts.
  • Automating updates to user roles or permissions across multiple accounts.
  • Integrating access control changes into broader workflows involving Google Analytics data management.

For example, if an organization wants to update the access level of a user on a specific Google Analytics account, this node can be used to send the updated access binding information to the Google Analytics Admin API.

Properties

Name Meaning
Account ID The unique identifier of the Google Analytics account where the access binding exists.
Access Binding ID The unique identifier of the access binding to update.
Query Parameters Optional parameters to customize the request, including:
- Calculated Metric ID: ID for calculated metrics
- Entity: Level of data access report (property or account)
- Filter: Expression to filter results
- Names: Names of access bindings to retrieve
- Page Size: Maximum number of report tasks to return
- Page Token: Token for fetching next page
- Show Deleted: Include soft-deleted properties
- Universal Analytics Property ID: UA property to look up connected GA4 property
- Update Mask: List of fields to update (in snake case)
Request Body JSON object containing the updated access binding data to send in the PATCH request.

Output

The node outputs a JSON array where each element corresponds to the response from the Google Analytics API for the update operation. The JSON structure reflects the updated access binding resource as returned by the API, typically including fields such as the binding's ID, user details, roles, and any other metadata associated with the access binding.

No binary data output is involved.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions must be granted to the OAuth2 credential to update account access bindings.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Analytics OAuth2 API credential is configured and selected.
  • Required Parameter Errors: Errors indicating missing "Account ID" or "Access Binding ID" mean these mandatory inputs were not provided. Verify these IDs are correctly set.
  • API Errors: Errors returned from the Google Analytics API may indicate permission issues, invalid IDs, or malformed request bodies. Check the API response message for details.
  • Update Mask Usage: When specifying the updateMask query parameter, ensure field names are in snake_case and correspond exactly to the fields being updated in the request body.

Links and References


This summary focuses on the "Admin (V1Alpha) - Account Access Binding" resource and the "Update Account Access Binding" operation as requested.

Discussion