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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=336e8a68e81305048a729289e64e23ff2e53af72e1459b69c079bccd0169e23e",
        "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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=315255750e088ee2a2fe2e47141d440c2d45a06fe47c3163d90e8a00d06b1ef0",
        "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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=4618cfa243756e21d9c97ca6a16e80c9af7f6d553680c548d33fd41319b889c5",
        "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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=552811b38fbfd54cf388d8bca160611c78ca1c7077cb3317dd985f0a6679d2aa",
        "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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=453a970a4b72125a32edabd73af193db6cc8bd37cd7cf3b4acbce7c298307ea9",
        "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%2F20171116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171116T234500Z&X-Amz-Expires=518400&X-Amz-SignedHeaders=host&X-Amz-Signature=717191b747aa8a438973c28d7bbc5e8c9af036e6c478d83610572286938ce665"
      },
      "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
    }
  ]
}