These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.fetchAllowedTeammates(callback)

Sends you the teammates that have access to the current conversation.

The callback's teammates parameter will contain an array of teammate.

callback: function

A callback function.

Front.fetchAllowedTeammates(function (teammates) {
    if (!teammates) return;

    console.log(teammates);
});

Sample JSON for a teammate:

{
  "avatar_type": "teammate",
  "class": "teammate",
  "alias": "john",
  "email": "[email protected]",
  "display_name": "John Doe",
  "given_name": "John",
  "family_name": "Doe",
  "avatar": "/img/avatars/default-avatar-03.jpg",
  "account_status": "active",
  "admin": true,
  "available": true,
  "color": "hsl(91,60%,70%)",
  "initials": "B",
  "num_assigned_received": 0,
  "num_assigned_sent": 0,
  "num_followed": 0,
  "num_drafts": 2,
  "num_unseen_notifications": 0,
  "has_unseen_assigned": false,
  "precog": null
}