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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=21a4b08f689dd03d557cfa02023b6552775b7023b60806fca85c34befa6ca356",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=51c5ef35993c97add35eb7da39e3ad20bc9e5d31a0526a025952dd541d26fbf0",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7c3fc15a3bb8117cc7c0d528846559d4a061592c53ac0cdf2ebf6d5a19ae2383",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2841a6ee6d194b62b2a37688bcfeb8b5d6179b3e70760811c7f3625372fc5293",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=04def3541eca95ac71866e7c5e712dd01baaa51cf0efc07650aaa73587f31fd8",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=9f6f6c9ddcd7be17eaaff5a762ea6b5ca3fcc55fa8cbcce003c46106f90cb884"
        },
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=21a4b08f689dd03d557cfa02023b6552775b7023b60806fca85c34befa6ca356",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=51c5ef35993c97add35eb7da39e3ad20bc9e5d31a0526a025952dd541d26fbf0",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7c3fc15a3bb8117cc7c0d528846559d4a061592c53ac0cdf2ebf6d5a19ae2383",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2841a6ee6d194b62b2a37688bcfeb8b5d6179b3e70760811c7f3625372fc5293",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=04def3541eca95ac71866e7c5e712dd01baaa51cf0efc07650aaa73587f31fd8",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=9f6f6c9ddcd7be17eaaff5a762ea6b5ca3fcc55fa8cbcce003c46106f90cb884"
      },
      "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=21a4b08f689dd03d557cfa02023b6552775b7023b60806fca85c34befa6ca356",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=51c5ef35993c97add35eb7da39e3ad20bc9e5d31a0526a025952dd541d26fbf0",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7c3fc15a3bb8117cc7c0d528846559d4a061592c53ac0cdf2ebf6d5a19ae2383",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2841a6ee6d194b62b2a37688bcfeb8b5d6179b3e70760811c7f3625372fc5293",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=04def3541eca95ac71866e7c5e712dd01baaa51cf0efc07650aaa73587f31fd8",
          "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=9f6f6c9ddcd7be17eaaff5a762ea6b5ca3fcc55fa8cbcce003c46106f90cb884"
        },
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=21a4b08f689dd03d557cfa02023b6552775b7023b60806fca85c34befa6ca356",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=51c5ef35993c97add35eb7da39e3ad20bc9e5d31a0526a025952dd541d26fbf0",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=7c3fc15a3bb8117cc7c0d528846559d4a061592c53ac0cdf2ebf6d5a19ae2383",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2841a6ee6d194b62b2a37688bcfeb8b5d6179b3e70760811c7f3625372fc5293",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=04def3541eca95ac71866e7c5e712dd01baaa51cf0efc07650aaa73587f31fd8",
        "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%2F20170722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170722T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=9f6f6c9ddcd7be17eaaff5a762ea6b5ca3fcc55fa8cbcce003c46106f90cb884"
      },
      "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
    }
  ]
}