Veljko
1
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
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
Path
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
name |
type |
required |
description |
name |
string |
true |
Workspace user name to filter by |
Response
200
Name |
Type |
Description |
items |
Array of object |
- |
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
Forbidden
404
Resource can not be found