---
id: "P:cAlgo.API.Internals.IAccount.UserId"
kind: "property"
type: "T:cAlgo.API.Internals.IAccount"
url: "https://help.ctrader.com/ctrader-algo/references/Account/IAccount/UserId/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# IAccount.UserId

Member of [IAccount](https://help.ctrader.com/ctrader-algo/references/Account/IAccount/index.md).

## UserId

Gets the user ID.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
long UserId {get;}
```

Python:

```python
api.Account.UserId: int
```

### Returns

`long` — 

### Examples

C#:

```csharp
Print("User id: {0}", Account.UserId);
```

Python:

```python
api.Print(f"User id: {api.Account.UserId}")
```

