> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kerne.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Users

> Read and update user profiles

A user is a login: an email, a password, a session. What a user can access belongs to their [customer](https://docs.kerne.io/sdks/server/overview.md#customers). Users sign up themselves or are added from the dashboard; the SDK has no `users.create()`.

## Current user

```typescript theme={"system"}
const me = await kerne.withToken(userAccessToken).users.me();
```

## Get a user

```typescript theme={"system"}
const user = await kerne.users.get(userId);
```

With your secret key you can read any user; with a user's token, only that user.

**id** `string` *required*

**email** `string` *required*

**email\_verified** `boolean` *required*

**first\_name** `string | null`

**last\_name** `string | null`

**avatar** `string | null`

**is\_active** `boolean` *required*

**is\_blocked** `boolean` *required*

**created\_at** `string` *required*

**last\_login\_at** `string | null`

## Update a user

```typescript theme={"system"}
const user = await kerne.users.update(userId, { first_name: 'Alicia', last_name: 'Doe' });
```

Only `first_name` and `last_name` can be changed. Same access rule as `get()`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.