“Workspace” Endpoints - GET Get workspace users

https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/users

List all users for a given workspace.

  • 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/workspaces/{workspace_id}/users".to_string())  .header(CONTENT_TYPE, "application/json")  .send()  .await?  .json()  .await?;    println!("{:#?}", json);  Ok(())}

Parameters

Path

name type required description
workspace_id integer true Numeric ID of the workspace

Query

name type required description
exclude_deleted boolean false Exclude deleted records in the response

Response

200

Name Type Description
items Array of object -
items
Name Type Description
email string Email of the user
fullname string Name of the user
id integer Global user identifier
inactive boolean internal
is_active boolean internal
is_admin boolean Flag indicating if user is admin Deprecated
role string Role of the user

403

User does not have access to this resource.

500

Internal Server Error