Assign a user to a Page
Gives a person of the portfolio tasks on a Page the portfolio owns or was granted as a
partner. Meta does not assign partner admins automatically, so after an owner shares a
Page the partner calls this for the people whose tokens will advertise for it.
ADVERTISE is what ad creation needs. Assigning an already assigned user replaces
their task set.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.assignPageUser({ body: { accountId: 'account_abc123', pageId: 'page_abc123', businessId: 'business_abc123', userId: 'user_abc123', tasks: [ 'MANAGE', ], },});console.log(data);{ "pageId": "string", "businessId": "string", "user": { "id": "string", "tasks": [ "string" ] }}Assign a user to an ad account
Gives a person of the portfolio tasks on the ad account. `MANAGE` is admin, `ADVERTISE` creates and edits ads, `ANALYZE` reads reports, `DRAFT` edits drafts only. Assigning an already assigned user replaces their task set.
Ad account users
People of a business portfolio assigned to a Meta ad account, with their tasks. Ids are business-scoped user ids (see `GET /v1/ads/businesses/users`).