InsionInsion
Rust

Retrieve a user

Fetch one user by its Insion user ID.

retrieve_a_user retrieves a stored user by the Insion user ID from ingestion or a list response. It does not resolve an application client_id.

let response = client.retrieve_a_user("usr_123", None).await?;
let user = response.data;

println!("{:?}", user.email);
println!("{:?}", user.appeal_url);

Signature and response fields

async fn retrieve_a_user(
    &self,
    user_id: &str,
    options: Option<RequestOptions>,
) -> Result<UserResponse, ApiError>

UserResponse.data is a User with Insion/external IDs, optional profile values, protection state, metadata, timestamps, optional action status and action time, and optional appeal URL. Check Option fields before using them; Ok means the API call succeeded, not that every optional field exists.

A missing user, insufficient access, or invalid credentials returns a typed ApiError. When starting from external identity data, List users by client_id or email to find the Insion ID first.

On this page