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,
)
| 25 | /// [`TeamsError::PermissionDenied`](crate::error::TeamsError::PermissionDenied) |
| 26 | /// if the caller lacks access. |
| 27 | pub 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 | /// |
no test coverage detected