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

Method users

python/collaboration/remote.py:576–596  ·  view source on GitHub ↗

Get the list of users in this project. .. 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: List of User objects :raises: RuntimeError if there was an error pulling

(self)

Source from the content-addressed store, hash-verified

574
575 @property
576 def users(self) -> List['user.User']:
577 """
578 Get the list of users in this project.
579
580 .. note:: If users have not been pulled, they will be pulled upon calling this.
581
582 .. note:: This function is only available to accounts with admin status on the Remote
583
584 :return: List of User objects
585 :raises: RuntimeError if there was an error pulling users
586 """
587 if not self.has_pulled_users:
588 self.pull_users()
589 count = ctypes.c_size_t()
590 value = core.BNRemoteGetUsers(self._handle, count)
591 if value is None:
592 raise RuntimeError(util._last_error())
593 result = []
594 for i in range(count.value):
595 result.append(user.User(value[i]))
596 return result
597
598 def get_user_by_id(self, id: str) -> Optional['user.User']:
599 """

Callers

nothing calls this directly

Calls 3

pull_usersMethod · 0.95
UserMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected