MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / current_user

Method current_user

python/collaboration/remote.py:637–653  ·  view source on GitHub ↗

Get the user object for the currently connected user (only if you are an admin) .. note:: If users have not been pulled, they will be pulled upon calling this. .. note:: This function is only available to accounts with admin status on the Remote :return: User object :raises: RuntimeErr

(self)

Source from the content-addressed store, hash-verified

635
636 @property
637 def current_user(self) -> Optional['user.User']:
638 """
639 Get the user object for the currently connected user (only if you are an admin)
640
641 .. note:: If users have not been pulled, they will be pulled upon calling this.
642
643 .. note:: This function is only available to accounts with admin status on the Remote
644
645 :return: User object
646 :raises: RuntimeError if there was an error pulling users
647 """
648 if not self.has_pulled_users:
649 self.pull_users()
650 value = core.BNRemoteGetCurrentUser(self._handle)
651 if value is None:
652 return None
653 return user.User(value)
654
655 def search_users(self, prefix: str) -> List[Tuple[str, str]]:
656 """

Callers

nothing calls this directly

Calls 2

pull_usersMethod · 0.95
UserMethod · 0.80

Tested by

no test coverage detected