Get business members
Changed onGet all members of the specified business. The return response will include the member's business_role and assets they have access to if assets_summary=TRUE
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesbiz_access:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of the requesting business.
Query parameters
Fetches system users if True. Fetches regular user employees if False.
Include assets summary in the response if this is true.
The assets summary returns a dictionary representing a summary of the assets for the business user ID, with information like the ad accounts and profiles the user has permissions for and what those permissions are
A list of business roles to filter the members by. Only members whose roles are in the specified roles will be returned.
[ "BIZ_ADMIN" ]
A list of business members ids separated by comma.
An index to start fetching the results from. Only the results starting from this index will be returned.
Cursor used to fetch the next page of items
Maximum number of items to include in a single page. See documentation on Pagination for more information.
Response
The request has succeeded.
Example response
{
"items": [
{
"assets_summary": {
"ad_accounts": [
{
"id": "549755885175",
"permissions": [
"FINANCE_MANAGER",
"CATALOGS_MANAGER",
"AUDIENCE_MANAGER"
]
}
],
"profiles": [
{
"id": "549755885175",
"permissions": [
"FINANCE_MANAGER",
"CATALOGS_MANAGER",
"AUDIENCE_MANAGER"
]
}
]
},
"business_roles": [
"BIZ_ADMIN"
],
"created_by_business": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_by_user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_time": 1646767577816,
"id": "549755885175",
"user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
}
}
]
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
added the new optional
queryrequest parameterfetch_system_users
- info