View as Markdown
Google Business Profile icon

Google Business Profile ACTION

List Accounts

Lists all accounts accessible to the authenticated user. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Business Profile account once, then configure and run List Accounts from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_my_business-list-accounts",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_my_business: { authProvisionId: "apn_xxxxxxx" },
    parentAccount: "Parent Account",
    filter: "Filter",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List Accounts inputs
Property Type Description
parentAccount Parent Account string
The resource name of the account for which the list of directly accessible accounts is to be retrieved. Format: accounts/{account_id}. If omitted, returns all accounts accessible to the authenticated user.
Optional
filter Filter string
A filter constraining the accounts to return. Currently only supports filtering by type (e.g. type=USER_GROUP).
Optional
pageSize Page Size integer
Number of accounts to return per page.
Optional
pageToken Page Token string
Token from a previous response to retrieve the next page of results.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
google_my_business-list-accounts
Version
0.0.2
App
Google Business Profile
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes