GET /api/users/suggest

suggest users in your community for autocompletion

Success Response Code: 200

Params

Param name Description
q
required

search term


Value: Must be a String
admins
optional

only include admins (default=false)


Value: Must be one of: <code>true</code>, <code>false</code>.
include_external_contributors
optional

include external contributors in the suggestion results


Value: Must be one of: <code>true</code>, <code>false</code>.

Response Fields

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/suggest.json?q=Jenni"

Examples

GET /api/users/suggest.json
200
{
  "users": [
    {
      "contact_info": {
        "email": "active'47@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": false,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 51,
      "first_name": "Abcdjoe",
      "last_name": "Zebulon",
      "name": "Abcdjoe Zebulon",
      "html_name": "Abcdjoe Zebulon",
      "url": "https://socialcast.socialcast.test/users/51-abcdjoezebulon",
      "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=20d722bae26c1803614b944276ae32deb1fdba6b9e71e4afab3631c52d503bab",
        "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=c9045087726be4fcff9c6dae5dd34d3848696bc28e9f61b58164431d398edcfc",
        "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4c0ae93ee369372202fb2a2e0ab809719df88c3b0601fcf65e58c87aa6b8c160",
        "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=a5a1f1479cf125d88fc8fe176cbe17746f7fd3592fbb97e45544badb26833782",
        "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=16e0074ad7edfc7c383209743ffddef76a64133ca3115ea6b6720d3270f2486e",
        "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%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=6d2d8f1bf972be671fc74ccdcc8b35c984fb1b5a429b4731656d9105f0730e2a"
      },
      "username": "AbcdjoeZebulon",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "tenant_admin",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    }
  ]
}