"Groups" Endpoints - GET List user groups in and organization with user and workspace assignments

https://api.track.toggl.com/api/v9/organizations/{organization_id}/groups

Returns list of groups in organization based on set of url parameters. List is sorted by name.

  • 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}/groups".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

Query

name type required description
name string false Returns records where name contains this string
workspace string false ID of workspace. Returns groups assigned to this workspace

Response

200

Name Type Description
items Array of object -
items
Name Type Description
at string -
group_id integer -
name string -
permissions string -
users Array of object -
workspaces Array of integer -
users
Name Type Description
avatar_url string -
inactive boolean -
joined boolean -
name string -
user_id integer -

400

Invalid number …