GET /api/users/search

search for users in your community

Success Response Code: 200

Params

Param name Description
q
optional

search term


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 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/search.json?q=emily"

Examples

GET /api/users/search.json
200
{
  "users": [
    {
      "contact_info": {
        "email": "active'47@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": true,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 51,
      "first_name": "Emily",
      "last_name": "D'øe47",
      "name": "Emily D'øe47",
      "html_name": "Emily D&#39;øe47",
      "url": "https://socialcast.socialcast.test/users/51-emilyd%C3%B8e47",
      "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=aa452266e4f491f388ede971cf7a9a33d0858b24feac4c6876d6c9adbf555b51",
        "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=b9b7ad64dca8ec166c819ec0207c4d1324839155efe2d9642ec27ef1719a3d5e",
        "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=f5fc8c21caf46548b0d96fe84a16ce075f8ddd9c7c356812d0e1afca06417b18",
        "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=fa6807c6c3bd2426bee3613d91fac3f4f770a6abfd33a266090481ae3e29b706",
        "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=2a9ce4088450c4827cce25608a131a65507f32d318e273dc856d274b2486f006",
        "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%2F20180418%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180418T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4a1caa0bd1a3acc2e30df1186cf918d954ffc853c6141be5aab96b006dfbea92"
      },
      "username": "EmilyDøe47",
      "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
    }
  ]
}