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" } } }
معلمة | الوصف |
---|---|
business numeric string | business مطلوب |
ستؤدي القراءة من عنصر الربط هذا إلى نتيجة بتنسيق JSON:
{ "
data
": [], "paging
": {}, "summary
": {} }
data
ستتم إضافة الحقول التالية إلى كل عقدة تمت إعادتها:
الحقل | الوصف |
---|---|
tasks list<string> | Tasks the user has on the WABA |
paging
summary
المعلومات المجمعة عن عنصر الربط، مثل الأعداد. يرجى تحديد الحقول المطلوب استدعاؤها في معلمة الملخص (مثل summary=total_count
).
الحقل | الوصف |
---|---|
total_count unsigned int32 | Total count |
خطأ | الوصف |
---|---|
100 | Invalid parameter |
200 | Permissions error |
/{whats_app_business_account_id}/assigned_users
.معلمة | الوصف |
---|---|
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 مطلوب |
user UID | Business user ID مطلوب |
success
: bool, خطأ | الوصف |
---|---|
100 | Invalid parameter |
200 | Permissions error |
/{whats_app_business_account_id}/assigned_users
.معلمة | الوصف |
---|---|
user UID | Business user ID مطلوب |
success
: bool, خطأ | الوصف |
---|---|
100 | Invalid parameter |
200 | Permissions error |