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

Method users

rust/src/collaboration/remote.rs:645–655  ·  view source on GitHub ↗

Retrieves the list of users in the 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

(&self)

Source from the content-addressed store, hash-verified

643 ///
644 /// NOTE: This function is only available to accounts with admin status on the Remote
645 pub fn users(&self) -> Result<Array<RemoteUser>, ()> {
646 if !self.has_pulled_users() {
647 self.pull_users()?;
648 }
649 let mut count = 0;
650 let value = unsafe { BNRemoteGetUsers(self.handle.as_ptr(), &mut count) };
651 if value.is_null() {
652 return Err(());
653 }
654 Ok(unsafe { Array::new(value, count, ()) })
655 }
656
657 /// Retrieves a specific user in the project by their ID.
658 ///

Callers

nothing calls this directly

Calls 2

has_pulled_usersMethod · 0.45
pull_usersMethod · 0.45

Tested by

no test coverage detected