> For the complete documentation index, see [llms.txt](https://wiki.owain.codes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.owain.codes/coding/snippets/untitled/get-current-logged-in-user-from-controller.md).

# Get current logged in user from Controller

This is useful if you know you will have a logged in user and you get get the unique key for that account:&#x20;

```
IPublishedContent member = Members.GetCurrentMember();

// Pass member key to mode

model.MemberKey = member.key
```
