Skip to main content

emit_user_membership_tenant_ids

Function emit_user_membership_tenant_ids 

Source
pub fn emit_user_membership_tenant_ids(
    root: &Value,
    user_id: i64,
) -> Option<String>
Expand description

Emits the tenant ids associated with one user’s active memberships as JSON.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::emit_user_membership_tenant_ids can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::emit_user_membership_tenant_ids.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::emit_user_membership_tenant_ids(std::path::Path::new("."), 1);