Skip to content

Interface: AttributedIdentity

Who a turn is ATTRIBUTED to, independent of which Databricks credential runs its calls. Supplied by the HTTP middleware from the forwarded user headers so that in service-principal mode - where every request shares the app SP’s client - the memory thread, per-user cache namespace, and trace metadata still key off the real caller. Ignored in an OBO (user) context, whose own user id / email are authoritative.

optional email?: string

Forwarded x-forwarded-email, used for trace metadata under the service principal.


optional userId?: string

Forwarded x-forwarded-user id, used when the client is the service principal.