List Collaboration Whitelists for an Enterprise
List Collaboration Whitelists for an Enterprise
Listing the collaboration whitelists will return all domains that permit collaborations to be created with the current enterprise.
There are no required parameters for the request, but limit
and market
parameters may optionally be set to limit and page through the full result set.
cURL
curl -X GET https://api.box.com/2.0/collaboration_whitelist_entries \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
BoxCollectionMarkerBased<BoxCollaborationWhitelistEntry> whitelistedDomains = await client.CollaborationWhitelistManager
.GetAllCollaborationWhitelistEntriesAsync();
Java
BoxCollaborationWhitelist.getAll(api);
Python
whitelist_entries = client.collaboration_whitelist().get_entries()
for entry in whitelist_entries:
direction = entry.direction if entry.direction != 'both' else 'bidirectional'
print('Domain {0} is whitelisted for {1} collaboration'.format(entry.domain, direction))
Node
client.collaborationWhitelist.getAllWhitelistedDomains(callback);