Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Property Access Binding → Create Property Access Binding

AI-generated

Overview

This node integrates with the Google Analytics API, specifically targeting the Admin (V1Alpha) resource for Property Access Binding operations. The "Create Property Access Binding" operation allows users to create access bindings for users within a Google Analytics property. This is useful for managing user permissions and access control at the property level in Google Analytics.

Common scenarios include:

  • Automating the assignment of user roles or permissions to specific properties.
  • Managing access for multiple users programmatically.
  • Integrating Google Analytics access management into broader workflows or automation pipelines.

For example, an organization can use this node to automatically grant new team members access to certain Google Analytics properties with predefined roles, streamlining onboarding processes.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the access binding will be created.
Query Parameters Optional parameters to customize the request, including:
- Calculated Metric ID
- Entity (property or account level)
- Filter expression
- Names of access bindings to retrieve
- Page Size (max number of report tasks)
- Page Token (for pagination)
- Show Deleted (include soft-deleted properties)
- Universal Analytics Property ID
- Update Mask (fields to update)
Request Body JSON object containing the details of the property access binding to create.

Output

The output is a JSON array containing the response from the Google Analytics API after creating the property access binding. The structure corresponds to the API's response for a newly created access binding, typically including details such as the binding's ID, user information, roles, and other metadata.

No binary data is output by this node.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics account/property are necessary to create access bindings.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics are properly set up and connected.
  • Required Parameter Errors: Errors like "Property ID is required" indicate missing mandatory input fields. Verify all required properties are provided.
  • API Errors: Errors returned from the Google Analytics API will be wrapped and shown with the message prefix "Error calling Google Analytics API." Check the error message and stack trace for details.
  • Permission Issues: Insufficient permissions on the Google Analytics property may cause authorization errors. Confirm that the authenticated user has rights to manage access bindings.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion