Get details for a single organization member. # Arguments `client` — Authenticated storage client. `org_slug` — URL-safe slug of the organization. `identity_id` — Identity of the member to retrieve.
(
client: &StorageClient,
org_slug: &str,
identity_id: Uuid,
)
| 57 | /// * `org_slug` — URL-safe slug of the organization. |
| 58 | /// * `identity_id` — Identity of the member to retrieve. |
| 59 | pub async fn get_member( |
| 60 | client: &StorageClient, |
| 61 | org_slug: &str, |
| 62 | identity_id: Uuid, |
| 63 | ) -> TeamsResult<OrgMemberInfo> { |
| 64 | let path = format!("/orgs/{org_slug}/members/{identity_id}"); |
| 65 | client.get(&path).await.map_err(|e| { |
| 66 | map_remote_error( |
| 67 | e, |
| 68 | format!("member identity {identity_id} in org {org_slug}"), |
| 69 | ) |
| 70 | }) |
| 71 | } |
| 72 | |
| 73 | /// Update the role of an existing organization member. |
| 74 | /// |
nothing calls this directly
no test coverage detected