pub fn msg_caller() -> PrincipalExpand description
Gets the identity of the caller, which may be a canister id or a user id.
During canister installation or upgrade, this is the id of the user or canister requesting the installation or upgrade. During a system task (heartbeat or global timer), this is the id of the management canister.