Represents users assigned to a specific WhatsApp Business Account (WABA).
Returns the WhatsApp Business Account's assigned users.
Requirements
whatsapp_business_management permission
whatsapp_business_messaging permission
public_profile permission
BUSINESS ID (also referred to as BUSINESS MANAGER ID in Business Settings)
WhatsApp Business Account (WABA) ID
USER ACCESS TOKEN
Request
curl -i -X GET \
"https://graph.facebook.com/LATEST-VERSION/WHATSAPP-BUSINESS-ACCOUNT-ID/assigned_users?
business=BUSINESS-ID&
access_token=USER-ACCESS-TOKEN"Response
{
"data": [
{
"id": "ASSIGNED-USER-ID",
"name": " ",
"tasks": [
"MANAGE"
]
}
],
"paging": {
"cursors": {
"before": "BEFORE-CURSOR",
"after": "AFTER-CURSOR"
}
}
}| Parameter | Description |
|---|---|
businessnumeric string | business Required |
Reading from this edge will return a JSON formatted result:
{ "
data": [], "paging": {}, "summary": {} }
dataThe following fields will be added to each node that is returned:
| Field | Description |
|---|---|
taskslist<string> | Tasks the user has on the WABA |
pagingsummaryAggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=total_count).
| Field | Description |
|---|---|
total_countunsigned int32 | Total count |
| Error | Description |
|---|---|
| 100 | Invalid parameter |
| 80008 | There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 200 | Permissions error |
/{whats_app_business_account_id}/assigned_users.| Parameter | Description |
|---|---|
tasksarray<enum {MANAGE, DEVELOP, MANAGE_TEMPLATES, MANAGE_PHONE, VIEW_COST, MANAGE_EXTENSIONS, VIEW_PHONE_ASSETS, MANAGE_PHONE_ASSETS, VIEW_TEMPLATES, MESSAGING}> | Permissions on WhatsApp Business Account Required |
userUID | Business user ID Required |
success: bool, | Error | Description |
|---|---|
| 100 | Invalid parameter |
| 200 | Permissions error |
| 80008 | There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
/{whats_app_business_account_id}/assigned_users.| Parameter | Description |
|---|---|
userUID | Business user ID Required |
success: bool, | Error | Description |
|---|---|
| 100 | Invalid parameter |