# “Workspaces” Endpoints - GET List of users who belong to the given workspace

**URL:** <https://community.toggl.com/t/workspaces-endpoints-get-list-of-users-who-belong-to-the-given-workspace/337>\
**Category:** API References\
**Tags:** workspace, users, api, endpoints, get\
**Created:** [December 2, 2024, 12:19pm UTC](https://community.toggl.com/t/workspaces-endpoints-get-list-of-users-who-belong-to-the-given-workspace/337 "2024-12-02T12:19:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 12:19pm UTC](https://community.toggl.com/t/workspaces-endpoints-get-list-of-users-who-belong-to-the-given-workspace/337/1 "2024-12-02T12:19:50Z")

</div>

```auto
https://api.track.toggl.com/api/v9/organizations/{organization_id}/workspaces/{workspace_id}/workspace_users

```

Returns any users who belong to the workspace directly or through at least one group.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::GET, "https://api.track.toggl.com/api/v9/organizations/{organization_id}/workspaces/{workspace_id}/workspace_users".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/workspaces/#parameters-1)

#### Path[​](https://engineering.toggl.com/docs/api/workspaces/#path-1)

| name | type | required | description |
| --- | --- | --- | --- |
| organization\_id | integer | true | Numeric ID of the organization |
| workspace\_id | integer | true | Numeric ID of the workspace within the organization |

#### Query[​](https://engineering.toggl.com/docs/api/workspaces/#query)

| name | type | required | description |
| --- | --- | --- | --- |
| name | string | true | Workspace user name to filter by |

### Response[​](https://engineering.toggl.com/docs/api/workspaces/#response-1)

#### 200[​](https://engineering.toggl.com/docs/api/workspaces/#200-1)

| Name | Type | Description |
| --- | --- | --- |
| items | Array of object | - |

##### items[​](https://engineering.toggl.com/docs/api/workspaces/#items)

| Name | Type | Description |
| --- | --- | --- |
| active | boolean | Flag indicating if user accepted the invitation |
| admin | boolean | Flag indicating if user is admin |
| at | string | Timestamp of the last update |
| avatar\_file\_name | string | URL of avatar |
| email | string | Email of the user |
| group\_ids | Array of integer | List of groups the user belongs to |
| id | integer | Identifier of the user workspace |
| inactive | boolean | Flag indicating if user was deactivated by admin of the workspace |
| invitation\_code | string | internal |
| invite\_url | string | internal |
| is\_direct | boolean | Flag indicating if user is a direct member of the workspace (is not assigned to the workspace using the group) |
| labor\_cost | number | Labor cost assigned to the user |
| labor\_cost\_last\_updated | string | Timestamp of the last labor cost update |
| name | string | Name of the user |
| organization\_admin | boolean | Flag indicating if user is admin inside organization |
| rate | number | Rate assigned to the user |
| rate\_last\_updated | string | Timestamp of the last rate update |
| role | string | Role of the user |
| role\_id | integer | - |
| timezone | string | Timezone of the user |
| uid | integer | Global user identifier |
| user\_id | integer | UserID alternative JSON field, only used by get-organization-workspaces-workspaceusers |
| view\_edit\_billable\_rates | boolean | Granular rate permission flags Only takes effect on roles with conditional rate permissions |
| view\_edit\_labor\_costs | boolean | - |
| wid | integer | Workspace identifier |
| working\_hours\_in\_minutes | integer | Working hours value in minutes |
| workspace\_admin | boolean | Flag indicating if user is admin inside workspace |
| workspace\_id | integer | UserID alternative JSON field, only used by get-organization-workspaces-workspaceusers |

#### 403[​](https://engineering.toggl.com/docs/api/workspaces/#403-1)

Forbidden

#### 404[​](https://engineering.toggl.com/docs/api/workspaces/#404-1)

Resource can not be found
