Collaboration Whitelists are used to determine specific email domains that can collaborate with a Box Enterprise. Certain users can be exempted from these restrictions, for example if they are a trusted person who needs to collaborate outside of the normally-allowed set of domains.
- Add a Domain to Collaboration Whitelist
- Get a Whitelisted Domain's Information
- Get Whitelisted Domains for an Enterprise
- Remove a Domain from Collaboration Whitelist
- Exempt a User from the Collaboration Whitelist
- Get an Exempt User's Information
- Get the User Collaboration Whitelists for an Enterprise
- Remove a User Exemption from the Collaboration Whitelist
You can whitelist a certain domain to allow collaboration with that domain for your
enterprise by calling
collaborationWhitelist.addDomain(domain, direction, callback)
.
The direction
parameter determines the level of restriction on which way the collaboration flows. Set to inbound
will allow users outside of our enterprise to collaboration with content inside your enterprise. Set to outbound
will allow users inside your enterprise to collaboration with content owned by someone outside your enterprise. Set to both
will allow both inbound
and outbound
.
client.collaborationWhitelist.addDomain('test.com', client.collaborationWhitelist.directions.INBOUND, callback);
Information about a specific collaboration whitelist record, which shows
the domain that is whitelisted, can be retrieved by calling
collaborationWhitelist.getWhitelistedDomain(domainID, options, callback)
.
client.collaborationWhitelist.getWhitelistedDomain('12345', {}, callback);
You can retrieve a collection of whitelisted domains for an enterprise with
collaborationWhitelist.getAllWhitelistedDomains(options, callback)
.
client.collaborationWhitelist.getAllWhitelistedDomains(callback);
Alternatively you can limit the number of whitelisted domains you wish to retrieve by setting a limit. The default is 100 entries and the maximum is 1,000 entries.
var options = {
limit: 50;
};
client.collaborationWhitelist.getAllWhitelistedDomains(options, callback);
You can remove a domain from the collaboration whitelist with
collaborationWhitelist.removeDomain(domainID, callback)
.
client.collaborationWhitelist.removeDomain('12345', callback);
You can make a specific user exempt from the collaboration whitelist, which
allows them to collaborate with users from any domain, by calling
collaborationWhitelist.addExemption(userID, callback)
.
client.collaborationWhitelist.addExemption('5678', callback);
To retrieve information about a specific user exemption record, you can use
collaborationWhitelist.getExemption(exemptionID, options, callback)
.
client.collaborationWhitelist.getExemption(`12345`, callback);
To retrieve a collection of users who are exempt from the collaboration whitelist
for an enterprise, call
collaborationWhitelist.getAllExemptions(options, callback)
.
client.colllaborationWhitelists.getAllExemptions(options, callback);
Alternatively you can limit the number of user collaboration whitelists you wish to retrieve by setting a limit, the default is 100 entries and the maximum is 1000 entries.
var options = {
limit: 50;
};
client.collaborationWhitelist.getAllExemptions(options, callback);
To remove a user exemption from collaboration whitelist and make that user
subject to whitelist restrictions again, you can call
collaborationWhitelist.removeExemption(exemptionID, callback)
.
client.collaborationWhitelist.removeExemption('12345678', callback);