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)
| 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 | """ |
nothing calls this directly
no test coverage detected