validate_user_group_members_access

Function validate_user_group_members_access 

Source
pub async fn validate_user_group_members_access(
    infra: &InfraContext<'_>,
    token: &str,
    group_members_target_vec: &[String],
) -> Result<(), Error>
Expand description

Validate that every xname in group_members_target_vec is a member of at least one group the token can access.

Admin tokens skip the check. Otherwise the caller’s accessible group list is fetched, expanded to member xnames, and matched against the request. This is the standard membership gate used by the per-node and per-host service helpers.