Function get_user_states

Source
pub(crate) fn get_user_states(
    nethsm: &NetHsm,
    admin_credentials: &AdminCredentials,
) -> Result<Vec<UserState>, Error>
Expand description

Retrieves the state for all users on a [NetHsm] backend.

§Note

Uses the nethsm with the default R-Administrator.

§Errors

Returns an error if

  • using the credentials of the default R-Administrator fails,
  • retrieving all user names of the NetHSM backend fails,
  • retrieving information about a specific NetHSM user fails,
  • or retrieving the tags of an Operator user fails.