MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / list_team_members

Function list_team_members

atomic-teams/src/team_member.rs:27–38  ·  view source on GitHub ↗

List all members of a team. Team member routes are org-scoped by the client's base URL/subdomain. For example, `/teams/engineering/members` targets Delta's engineering team when the client base URL is `https://delta. ` and Atomic's engineering team when it is `https://atomic. `. # Errors Returns [`TeamsError::TeamNotFound`](crate::error::TeamsError::TeamNotFound) if the team does

(
    client: &StorageClient,
    org_slug: &str,
    team_slug: &str,
)

Source from the content-addressed store, hash-verified

25/// [`TeamsError::PermissionDenied`](crate::error::TeamsError::PermissionDenied)
26/// if the caller lacks access.
27pub async fn list_team_members(
28 client: &StorageClient,
29 org_slug: &str,
30 team_slug: &str,
31) -> TeamsResult<Vec<TeamMemberInfo>> {
32 debug_assert_eq!(client.org_slug(), org_slug);
33 let path = format!("/teams/{team_slug}/members");
34 client
35 .get(&path)
36 .await
37 .map_err(|e| map_remote_error(e, format!("team {org_slug}/{team_slug}")))
38}
39
40/// Add an identity to a team.
41///

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected