HomeDocsAndroidUser accounts

User accounts

v1.7.1

Identify the account a tester is using when they report a bug.

Identify the account a report is filed under so a triager can reproduce the bug. It renders as a dedicated Account section at the top of the created issue, and the role becomes a filterable label.

kotlin
import app.bugscreen.android.BugScreenSDK
import app.bugscreen.android.BugScreenUser

// Set the current account (id required; role and email optional):
BugScreenSDK.setUser(id = "pro-user-8823", role = "admin")

// Or read it fresh at capture time — ideal when QA switches logins mid-session:
BugScreenSDK.setUserProvider {
    session.currentUser?.let { BugScreenUser(id = it.id, role = it.role) }
}

// Clear it on logout:
BugScreenSDK.clearUser()

Only role becomes a label (non-PII); id and email stay in the issue body. Pass email only when you want a contactable address in the tracker — nothing is auto-collected.