set User
Identify the account the report is filed under. The reporter's login is the first thing a triager needs to reproduce a bug, so the backend renders it as a dedicated Account section at the top of the created issue and promotes role to a filterable label.
This sets a static value. If the current account can change during a session (e.g. QA switching logins), prefer setUserProvider so it is read fresh at capture time. Setting a user here clears any provider previously registered.
Privacy: pass email only when your team wants a contactable address in the tracker — it is off by default. Nothing is auto-collected.
Safe to call from any thread, at any time after start.
Example:
BugScreenSDK.setUser(id = "pro-user-8823", role = "admin")Content copied to clipboard