class lamindb.User(handle: str, email: str, name: Optional[str])#

Bases: Registry, CanValidate


All data in this registry is synced from to ensure a universal user identity, valid across DB instances and user metadata changes.

There is no need to manually create records.


Query a user by handle:

>>> user = ln.User.filter(handle="testuser1").one()
>>> user
User(id=DzTjkKse, handle=testuser1, name=Test User1, updated_at=2023-07-10 18:37:26)


id AutoField

Internal id, valid only in one DB instance.

uid CharField

Universal id, valid across DB instances.

handle CharField

Universal handle, valid across DB instances (required).

name CharField

Name (optional).

created_at DateTimeField

Time of creation of record.

updated_at DateTimeField

Time of last update to record.