Manage your business' asset groups and learn how to connect your business users to asset groups. Business asset groups help large advertisers or agencies efficiently manage users and assets in their business. You should organize assets and users in a way that maps to real-world operations. For example, a business can structure its assets and users according to brand, region, client, or an organizing principle of their choice.
Business asset groups can contain ad accounts, Pages, Facebook pixels, offline event sets, apps, catalogs, custom conversions and Instagram accounts. The assets can be owned by a business or shared to provide access to an agency.
To get a list of asset groups associated with a business, send a GET
request to the BusinessBusinessAssetGroups
endpoint.
curl -i -X GET "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/business_asset_groups ?access_token=<ACCESS_TOKEN>"
{ "data": [ { "id": "BUSINESS-ID", "name": "Northern Region" }, { "id": "BUSINESS-ID", "name": "Western Region" } ], .... }
To get details about a specific business asset group, send a GET
request to the BusinessAssetGroup
endpoint.
curl -i -X GET "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID> ?access_token=<ACCESS_TOKEN>"
{ "id": "BUSINESS-ASSET-GROUP-ID", "name": "BUSINESS-ASSET-GROUP-NAME" }
To rename a specific asset group, send a POST
request to the BusinessAssetGroup
endpoint and set name
to the new value.
curl -i -X POST "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID> ?name=BUSINESS-ASSET-GROUP-NAME &access_token=<ACCESS_TOKEN>"
"success": "true"
To delete a specific asset group, send a DELETE
request to the BusinessAssetGroup
endpoint.
curl -i -X DELETE "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID> ?access_token=<ACCESS_TOKEN>"
"success": "true"
Public User fields for a User who has a role on the business that has claimed the app.
Refer to the Business Asset User Profile Access reference for a list of readable User Fields.
To view a list of all business asset groups that a business-scoped user can access send a GET
request to the BusinessScopedUser/AssignedBusinessAssetGroups
endpoint.
curl -i -X GET "https://graph.facebook.com/<API_VERSION>/<BUSINESS_SCOPED_USER_ID>/assigned_business_asset_groups ?limit=1 &access_token=<ACCESS_TOKEN>"
The response includes roles which define the access levels a user has per asset type:
{ "data": [ { "id": "BUSINESS-ID" "name": "USER NAME", "page_roles": [ "ANALYZE", "ADVERTISE" ], "offline_conversion_data_set_roles": ["UPLOAD"], "adaccount_roles": ["ANALYZE", "ADVERTISE"], "pixel_roles": ["ANALYZE", "EDIT"] } ], .... }
To read a list of assigned users for an asset group, send a GET
request to the BusinessAssetGroupAssignedUsers
endpoint.
curl -i -X GET "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID>/assigned_users ?limit=2 &business=<BUSINESS_ID> &access_token=<ACCESS_TOKEN>"
{ "data": [ { "id": "BUSINESS-ID", "name": "Dabney Donigan", "page_roles": [ "ANALYZE" ], "offline_conversion_data_set_roles": [ "ADVERTISE", "UPLOAD", "MANAGE" ], "adaccount_roles": [ "ANALYZE" ], "pixel_roles": [ "ANALYZE", "EDIT" ] } ], .... }
To assign users to a business asset group, send a POST
request to the BusinessAssetGroupAssignedUsers
endpoint.
curl -i -X POST "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID>/assigned_users ?business=<BUSINESS_ID> &user=USER-ID &page_roles=LIST-OF-PAGE-ROLES &adaccount_roles=LIST-OF-AD-ACCOUNT-ROLES &pixel_roles=LIST-OF-PIXEL-ROLES &offline_conversion_data_set_roles=LIST-OF-OFFLINE-CONVERSION-ROLES &access_token=<ACCESS_TOKEN>"
"success": "true"
To remove a user from a group, send a POST
request to the BusinessAssetGroup
endpoint.
curl -i -X DELETE \ "https://graph.facebook.com/<API_VERSION>/<BUSINESS_ASSET_GROUP_ID>/assigned_users ?business=<BUSINESS_ID> &user=<USER_ID> &access_token=<ACCESS_TOKEN>"
"success": "true"