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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=a28251c854031c5343b8824c2b108c7a1aad3398b7cbe2a9ba4311f8e76a926c",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4a964be2afc00e59eb31462e2847779926acb01ea835d28de9da2d22e1acebbb",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=77cef6bd67a224b8801aefcc2ba8aefa354960b0e8ae42c763ee86b1063ffdc3",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=380516741cbcc811f42ba22370e0e53f4b16a8e43b5f2773bfadbdc905a34812",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=76dd4a137a90f0a31455b2765d08e62b72ca775baea187967e34e5ba79c03f99",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=5b7096c130e26e4d2b68316e84959520b936e1babf235b5f763e64eed0ce02ce"
        },
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=a28251c854031c5343b8824c2b108c7a1aad3398b7cbe2a9ba4311f8e76a926c",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4a964be2afc00e59eb31462e2847779926acb01ea835d28de9da2d22e1acebbb",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=77cef6bd67a224b8801aefcc2ba8aefa354960b0e8ae42c763ee86b1063ffdc3",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=380516741cbcc811f42ba22370e0e53f4b16a8e43b5f2773bfadbdc905a34812",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=76dd4a137a90f0a31455b2765d08e62b72ca775baea187967e34e5ba79c03f99",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=5b7096c130e26e4d2b68316e84959520b936e1babf235b5f763e64eed0ce02ce"
      },
      "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=a28251c854031c5343b8824c2b108c7a1aad3398b7cbe2a9ba4311f8e76a926c",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4a964be2afc00e59eb31462e2847779926acb01ea835d28de9da2d22e1acebbb",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=77cef6bd67a224b8801aefcc2ba8aefa354960b0e8ae42c763ee86b1063ffdc3",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=380516741cbcc811f42ba22370e0e53f4b16a8e43b5f2773bfadbdc905a34812",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=76dd4a137a90f0a31455b2765d08e62b72ca775baea187967e34e5ba79c03f99",
          "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=5b7096c130e26e4d2b68316e84959520b936e1babf235b5f763e64eed0ce02ce"
        },
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=a28251c854031c5343b8824c2b108c7a1aad3398b7cbe2a9ba4311f8e76a926c",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4a964be2afc00e59eb31462e2847779926acb01ea835d28de9da2d22e1acebbb",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=77cef6bd67a224b8801aefcc2ba8aefa354960b0e8ae42c763ee86b1063ffdc3",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=380516741cbcc811f42ba22370e0e53f4b16a8e43b5f2773bfadbdc905a34812",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=76dd4a137a90f0a31455b2765d08e62b72ca775baea187967e34e5ba79c03f99",
        "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%2F20181030%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181030T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=5b7096c130e26e4d2b68316e84959520b936e1babf235b5f763e64eed0ce02ce"
      },
      "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
    }
  ]
}