HomeDocsiOSUser accounts

User accounts

v1.7.0

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.

swift
import BugScreenSDK

// 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.map { BugScreenUser(id: $0.id, role: $0.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.