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 a String
page
optional

page number to view (default=1)


Value: Must be a Integer
per_page
optional

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


Value: Must be a 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/52/employees.json
200
{
  "users": [
    {
      "contact_info": {
        "email": "active'46@socialcast.com"
      },
      "manager": {
        "id": 52,
        "first_name": "J'øhn48",
        "last_name": "D'øe48",
        "name": "J'øhn48 D'øe48",
        "html_name": "J&#39;øhn48 D&#39;øe48",
        "url": "https://socialcast.socialcast.test/users/52-j%C3%B8hn48d%C3%B8e48",
        "avatars": {
          "is_system_default": false,
          "id": 4,
          "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=596983fcd588c5390d0f41ac07b4bba19b52ae6020af0f314854bc62fa6aa85e",
          "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=983323b02f6ff12971f1fac25cce6762512b586bd9efb9fa10f50830362b9600",
          "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=674218b167e7d6fb341d554dc8332183f92eab54cd2277d466812a40f0c45862",
          "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3dd82ab3be234930a4271e887ce20347f785f5d79d7d8eab1206d611758a64db",
          "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b865822aa2f42d3b0860401e89bdeaf9de2f62d7ab3077ec57724f084271aa6d",
          "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3667ab6edc2feecd1cd62ebf33a58fb0b2595135f08f3c7a47c302208266b93b"
        },
        "username": "Jøhn48Døe48",
        "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": 50,
      "first_name": "J'øhn46",
      "last_name": "Aardvark",
      "name": "J'øhn46 Aardvark",
      "html_name": "J&#39;øhn46 Aardvark",
      "url": "https://socialcast.socialcast.test/users/50-j%C3%B8hn46aardvark",
      "avatars": {
        "is_system_default": false,
        "id": 4,
        "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=596983fcd588c5390d0f41ac07b4bba19b52ae6020af0f314854bc62fa6aa85e",
        "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=983323b02f6ff12971f1fac25cce6762512b586bd9efb9fa10f50830362b9600",
        "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=674218b167e7d6fb341d554dc8332183f92eab54cd2277d466812a40f0c45862",
        "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3dd82ab3be234930a4271e887ce20347f785f5d79d7d8eab1206d611758a64db",
        "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b865822aa2f42d3b0860401e89bdeaf9de2f62d7ab3077ec57724f084271aa6d",
        "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3667ab6edc2feecd1cd62ebf33a58fb0b2595135f08f3c7a47c302208266b93b"
      },
      "username": "Jøhn46Aardvark",
      "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'49@socialcast.com"
      },
      "manager": {
        "id": 52,
        "first_name": "J'øhn48",
        "last_name": "D'øe48",
        "name": "J'øhn48 D'øe48",
        "html_name": "J&#39;øhn48 D&#39;øe48",
        "url": "https://socialcast.socialcast.test/users/52-j%C3%B8hn48d%C3%B8e48",
        "avatars": {
          "is_system_default": false,
          "id": 4,
          "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=596983fcd588c5390d0f41ac07b4bba19b52ae6020af0f314854bc62fa6aa85e",
          "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=983323b02f6ff12971f1fac25cce6762512b586bd9efb9fa10f50830362b9600",
          "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=674218b167e7d6fb341d554dc8332183f92eab54cd2277d466812a40f0c45862",
          "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3dd82ab3be234930a4271e887ce20347f785f5d79d7d8eab1206d611758a64db",
          "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b865822aa2f42d3b0860401e89bdeaf9de2f62d7ab3077ec57724f084271aa6d",
          "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3667ab6edc2feecd1cd62ebf33a58fb0b2595135f08f3c7a47c302208266b93b"
        },
        "username": "Jøhn48Døe48",
        "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": 53,
      "first_name": "J'øhn49",
      "last_name": "Zebra",
      "name": "J'øhn49 Zebra",
      "html_name": "J&#39;øhn49 Zebra",
      "url": "https://socialcast.socialcast.test/users/53-j%C3%B8hn49zebra",
      "avatars": {
        "is_system_default": false,
        "id": 4,
        "square16": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=596983fcd588c5390d0f41ac07b4bba19b52ae6020af0f314854bc62fa6aa85e",
        "square30": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square30.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=983323b02f6ff12971f1fac25cce6762512b586bd9efb9fa10f50830362b9600",
        "square45": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square45.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=674218b167e7d6fb341d554dc8332183f92eab54cd2277d466812a40f0c45862",
        "square70": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square70.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3dd82ab3be234930a4271e887ce20347f785f5d79d7d8eab1206d611758a64db",
        "square140": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails_square140.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b865822aa2f42d3b0860401e89bdeaf9de2f62d7ab3077ec57724f084271aa6d",
        "original": "https://s3.amazonaws.com/socialcast_test/tenants/1/profile_photos/4/rails.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=stubbed-akid%2F20170920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170920T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=3667ab6edc2feecd1cd62ebf33a58fb0b2595135f08f3c7a47c302208266b93b"
      },
      "username": "Jøhn49Zebra",
      "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
    }
  ]
}