SCALIX help

← All tools

lads_list_account_users

LinkedIn Ads read low risk

Part of the LinkedIn Campaign Manager Agent.

What it does

Lists the members (users) who have a role on a given ad account. Backed by GET /rest/adAccountUsers?q=accounts (since the 2026 changes this finder accepts exactly ONE account per call). Returns elements of {account, user (urn:li:person), role} plus paging.total/start/count. Use to audit who can act on an account, to confirm there is exactly one ACCOUNT_BILLING_ADMIN, and to verify the connected member has a role sufficient to mutate (CAMPAIGN_MANAGER+). Accuracy notes: no metrics; write-capability role precedence is VIEWER < CREATIVE_MANAGER < CAMPAIGN_MANAGER < ACCOUNT_MANAGER < ACCOUNT_BILLING_ADMIN; person URNs are app-scoped (not portable across LinkedIn apps).

Inputs

NameTypeRequiredDescription
account_idstringyesNumeric ad account ID (digits only) or urn:li:sponsoredAccount:{id}, not percent-encoded; Scalix builds and encodes the accounts=List(<URN>) key itself. Exactly one account is supported per call.
page_sizeintegernoItems per page (start/count index pagination; count default 100). Surface the platform error verbatim if a value is rejected rather than assuming a cap.
page_tokenstringnoThe next page's start offset (digits): paging.start + paging.count from the previous response. Anything else returns invalid_argument.

Safeguards

Policy

Member identity is sensitive personal data: list users only for an account the bearer is scoped to, expose person URNs only to the authorizing client, and never store member identity beyond fulfilling this request or use it for enrichment/prospecting (Marketing API Terms; member profile-derived data must be purged <=24h).

Reminder

Person URNs are app-scoped member data — do not retain beyond the request, cross-reference, or repurpose them for enrichment.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDThe specified account does not exist or is not visible to the bearer (404).Verify account_id via lads_list_ad_accounts.no
PERMISSION_DENIEDToken lacks r_ads/rw_ads or the member cannot view user access for this account (403); managing/viewing users typically requires ACCOUNT_MANAGER+.Confirm role and scope; do not retry without them.no
INVALID_ARGUMENTThe account is not a numeric id or urn:li:sponsoredAccount:{id} (refused before the call), or more than one account was passed (q=accounts accepts a single account as of 2026).Pass exactly one account, as its numeric id or urn:li:sponsoredAccount:{id} (Scalix encodes it); surface the platform message.no
TOKEN_REVOKEDAccess token expired/revoked (401).needs_reauth — refresh once and retry; else prompt reconnect.yes
RESOURCE_EXHAUSTEDRate/quota limit exceeded (429).Backoff 5/10/20s cap 60s; honor reset header.yes
PLATFORM_UNAVAILABLELinkedIn 5xx.Retry with backoff; report if persistent.yes

Edge cases

  • Only ONE account is honored per call (2026 change) — split into one call per account.
  • Empty result -> success count:0 (account exists but exposes no users to this caller).
  • Exactly one ACCOUNT_BILLING_ADMIN is expected; flag if zero or more than one appears.
  • Connected member has only VIEWER/CREATIVE_MANAGER -> warn that downstream write tools will 403.
  • Pagination via paging.total; return page_token (next start) when more remain.
  • Expired token -> refresh + retry once.