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

# User Profile

> Read the authenticated user's profile.

`UserService` is intentionally minimal — a single operation that returns the profile of the currently authenticated user. Requires an OAuth access token with the `read` scope.

## GetCurrentUser

```ts theme={null}
const res = await user.getCurrentUser({});
console.log(res.user.id?.value, res.user.displayName);
```

Returns the `User` message with:

* `user.id` — typed `UserID` (`{ value: string }`).
* `user.display_name` — display name as set by the user.
* `user.avatar` — avatar `Image` (see [`media.proto`](https://github.com/anghami/sdk/blob/main/sdk/shared/v1/media.proto)).
* `user.age` — optional integer; may be absent for privacy reasons.

Future fields (subscription, entitlements, etc.) will land here as the SDK grows. Treat every field as potentially absent — clients should handle missing optional values gracefully.

## Why so small

The SDK does not expose social-graph operations (followers, friends, etc.), and it does not expose other users' profiles. `UserService` is just enough for a client to render "you are signed in as …" — anything richer is intentionally outside the public surface.

## Related

* [Library](/library) — operations on this user's library.
* [Authentication](/usage-auth) — getting an OAuth token in the first place.
