HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: User

Location: n/a

Formats: XML, JSON

Returns a list of users in a specified space.

Params

No options available

Examples

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/users.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 05 Oct 2012 14:49:15 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200

[
  {
    "id":"bgnP_qA1Gr2QjIaaaHk9wZ",
    "login":"test",
    "name":"Name Lastname",
    "email":"email@example.com",
    "organization":null,
    "phone":"",
    "im":{
      "type":null,
      "id":null
    },
    "im2":{
      "type":null,
      "id":null
    }
  }
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/users.xml

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 05 Oct 2012 14:52:27 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200

<?xml version="1.0" encoding="UTF-8"?>
<users type="array">
  <user>
    <id>bgnP_qA1Gr2QjIaaaHk9wZ</id>
    <login>test</login>
    <name>Name Lastname</name>
    <email>email@example.com</email>
    <organization nil="true"></organization>
    <phone></phone>
    <im>
      <type nil="true"></type>
      <id nil="true"></id>
    </im>
    <im2>
      <type nil="true"></type>
      <id nil="true"></id>
    </im2>
  </user>
</users>

Description for each field: user role object fields reference