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" } } }
Paramètre | Description |
---|---|
business numeric string | business Obligatoire |
La lecture à partir de cette arête renverra un résultat au format JSON :
{ "
data
": [], "paging
": {}, "summary
": {} }
data
Les champs suivants seront ajoutés à chaque nœud renvoyé :
Champ | Description |
---|---|
tasks list<string> | Tasks the user has on the WABA |
paging
summary
Informations agrégées relatives à l’arête, par exemple le nombre. Indiquez les champs à récupérer dans le paramètre récapitulatif (par exemple récapitulatif=total_count
).
Champ | Description |
---|---|
total_count unsigned int32 | Total count |
Erreur | Description |
---|---|
100 | Invalid parameter |
200 | Permissions error |
/{whats_app_business_account_id}/assigned_users
.Paramètre | Description |
---|---|
tasks array<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 Obligatoire |
user UID | Business user ID Obligatoire |
success
: bool, Erreur | Description |
---|---|
100 | Invalid parameter |
200 | Permissions error |
/{whats_app_business_account_id}/assigned_users
.Paramètre | Description |
---|---|
user UID | Business user ID Obligatoire |
success
: bool, Erreur | Description |
---|---|
100 | Invalid parameter |
200 | Permissions error |