MCPcopy Create free account
hub / github.com/dfinity/orbit / get_user

Method get_user

core/station/impl/src/services/user.rs:56–67  ·  view source on GitHub ↗

Returns the user associated with the given user id.

(&self, user_id: &UserId)

Source from the content-addressed store, hash-verified

54
55 /// Returns the user associated with the given user id.
56 pub fn get_user(&self, user_id: &UserId) -> ServiceResult<User> {
57 let user =
58 self.user_repository
59 .get(&User::key(*user_id))
60 .ok_or(UserError::NotFoundUser {
61 user: Uuid::from_bytes(user_id.to_owned())
62 .hyphenated()
63 .to_string(),
64 })?;
65
66 Ok(user)
67 }
68
69 pub async fn get_caller_privileges_for_user(
70 &self,

Callers 6

edit_userMethod · 0.45
get_userFunction · 0.45
getUserMethod · 0.45
getCurrentUserMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1

get_userFunction · 0.36