Box Developer Documentation
Latest version

Get user exempt from collaboration domain restrictions

get
https://api.box.com/2.0
/collaboration_whitelist_exempt_targets/:collaboration_whitelist_exempt_target_id

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Returns a users who has been exempt from the collaboration domain restrictions.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

984923

The ID of the exemption to the list.

Response

Returns the user's exempted from the list of collaboration domains.

application/jsonClient error

An unexpected client error.

get
Get user exempt from collaboration domain restrictions
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


cURL
curl -i -X GET "https://api.box.com/2.0/collaboration_whitelist_exempt_targets/984923" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.collaborationAllowlistExemptTargets.getCollaborationWhitelistExemptTargetById(
  newExemptTarget.id!,
);
Python v10
client.collaboration_allowlist_exempt_targets.get_collaboration_whitelist_exempt_target_by_id(
    new_exempt_target.id
)
.NET v10
await client.CollaborationAllowlistExemptTargets.GetCollaborationWhitelistExemptTargetByIdAsync(collaborationWhitelistExemptTargetId: NullableUtils.Unwrap(newExemptTarget.Id));
Swift v10
try await client.collaborationAllowlistExemptTargets.getCollaborationWhitelistExemptTargetById(collaborationWhitelistExemptTargetId: newExemptTarget.id!)
Java v10
client.getCollaborationAllowlistExemptTargets().getCollaborationWhitelistExemptTargetById(newExemptTarget.getId())
.NET v5
string exemptionID = "33333";
BoxCollaborationWhitelistTargetEntry exemptUser = await client.CollaborationWhitelistManager
    .GetCollaborationWhitelistExemptUserAsync(exemptionID);
Node v3
client.collaborationAllowlist.getExemption(`12345`, callback);

Response Example

{
  "id": "11446498",
  "type": "collaboration_whitelist_exempt_target",
  "created_at": "2012-12-12T10:53:43-08:00",
  "enterprise": {
    "id": "11446498",
    "type": "enterprise",
    "name": "Acme Inc."
  },
  "modified_at": "2012-12-12T10:53:43-08:00",
  "user": {
    "id": "11446498",
    "type": "user",
    "login": "ceo@example.com",
    "name": "Aaron Levie"
  }
}