GET /api/users/:user_id/employees

list users for whom the user is the manager

Success Response Code: 200

Params

Param name Description
user_id
required

id of the user


Value: Must be String
page
optional

page number to view (default=1)


Value: Must be Integer
per_page
optional

number of users to be returned per page (default=20, max=500)


Value: Must be Integer

Response Fields

users list of employee users (see #show for details) Array<User>

Example Curl Commands

curl -X GET -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/users/31/employees.json"

Examples

GET /api/users/5/employees.json
200
{
  "users": [
    {
      "contact_info": {
        "email": "active'3@socialcast.com"
      },
      "manager": {
        "id": 5,
        "first_name": "J'øhn5",
        "last_name": "D'øe5",
        "name": "J'øhn5 D'øe5",
        "html_name": "J&#39;øhn5 D&#39;øe5",
        "url": "https://socialcast.socialcast.test/users/5-j%C3%B8hn5d%C3%B8e5",
        "avatars": {
          "is_system_default": false,
          "id": 1,
          "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=8967bee0818c42110a0eb7fcb890009445f4af3b901545cf8393d21a8d3d4777",
          "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7cceb71d3e920e749f77cee0621ee2a24c70aa5f1981e899b656e4a2420f630d",
          "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2a9152a57e3bccf111b66356eb95a542da154a6196baffb2d2dab28cc8950fdb",
          "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=471dbf8f3a975f4c8a2f478ac78b7dd650b1256f797e0b78cc65b6282288b642",
          "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2350240cfee43785735d7e31e59f1f6436d33be6e8ea726657649897080130d5",
          "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=768a8ece3639b57a399b49d9bc878b6b3c907459bebc9bd690aec0f568a5a232"
        },
        "username": "Jøhn5Døe5",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "custom_fields": [],
      "followable": false,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 3,
      "first_name": "J'øhn3",
      "last_name": "Aardvark",
      "name": "J'øhn3 Aardvark",
      "html_name": "J&#39;øhn3 Aardvark",
      "url": "https://socialcast.socialcast.test/users/3-j%C3%B8hn3aardvark",
      "avatars": {
        "is_system_default": false,
        "id": 1,
        "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=8967bee0818c42110a0eb7fcb890009445f4af3b901545cf8393d21a8d3d4777",
        "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7cceb71d3e920e749f77cee0621ee2a24c70aa5f1981e899b656e4a2420f630d",
        "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2a9152a57e3bccf111b66356eb95a542da154a6196baffb2d2dab28cc8950fdb",
        "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=471dbf8f3a975f4c8a2f478ac78b7dd650b1256f797e0b78cc65b6282288b642",
        "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2350240cfee43785735d7e31e59f1f6436d33be6e8ea726657649897080130d5",
        "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=768a8ece3639b57a399b49d9bc878b6b3c907459bebc9bd690aec0f568a5a232"
      },
      "username": "Jøhn3Aardvark",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    },
    {
      "contact_info": {
        "email": "active'6@socialcast.com"
      },
      "manager": {
        "id": 5,
        "first_name": "J'øhn5",
        "last_name": "D'øe5",
        "name": "J'øhn5 D'øe5",
        "html_name": "J&#39;øhn5 D&#39;øe5",
        "url": "https://socialcast.socialcast.test/users/5-j%C3%B8hn5d%C3%B8e5",
        "avatars": {
          "is_system_default": false,
          "id": 1,
          "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=8967bee0818c42110a0eb7fcb890009445f4af3b901545cf8393d21a8d3d4777",
          "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7cceb71d3e920e749f77cee0621ee2a24c70aa5f1981e899b656e4a2420f630d",
          "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2a9152a57e3bccf111b66356eb95a542da154a6196baffb2d2dab28cc8950fdb",
          "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=471dbf8f3a975f4c8a2f478ac78b7dd650b1256f797e0b78cc65b6282288b642",
          "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2350240cfee43785735d7e31e59f1f6436d33be6e8ea726657649897080130d5",
          "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=768a8ece3639b57a399b49d9bc878b6b3c907459bebc9bd690aec0f568a5a232"
        },
        "username": "Jøhn5Døe5",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "custom_fields": [],
      "followable": true,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 6,
      "first_name": "J'øhn6",
      "last_name": "Zebra",
      "name": "J'øhn6 Zebra",
      "html_name": "J&#39;øhn6 Zebra",
      "url": "https://socialcast.socialcast.test/users/6-j%C3%B8hn6zebra",
      "avatars": {
        "is_system_default": false,
        "id": 1,
        "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=8967bee0818c42110a0eb7fcb890009445f4af3b901545cf8393d21a8d3d4777",
        "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7cceb71d3e920e749f77cee0621ee2a24c70aa5f1981e899b656e4a2420f630d",
        "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2a9152a57e3bccf111b66356eb95a542da154a6196baffb2d2dab28cc8950fdb",
        "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=471dbf8f3a975f4c8a2f478ac78b7dd650b1256f797e0b78cc65b6282288b642",
        "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2350240cfee43785735d7e31e59f1f6436d33be6e8ea726657649897080130d5",
        "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/1/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170222T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=768a8ece3639b57a399b49d9bc878b6b3c907459bebc9bd690aec0f568a5a232"
      },
      "username": "Jøhn6Zebra",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    }
  ]
}