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

Function username

python/enterprise.py:132–141  ·  view source on GitHub ↗

Get the username of the currently authenticated user to the Enterprise Server. :return: Username, if authenticated. None, otherwise.

()

Source from the content-addressed store, hash-verified

130
131
132def username() -> Optional[str]:
133 """
134 Get the username of the currently authenticated user to the Enterprise Server.
135
136 :return: Username, if authenticated. None, otherwise.
137 """
138 value = core.BNGetEnterpriseServerUsername()
139 if value is None:
140 raise RuntimeError(last_error())
141 return value
142
143
144def token() -> Optional[str]:

Callers

nothing calls this directly

Calls 1

last_errorFunction · 0.85

Tested by

no test coverage detected