> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# selectCurrentUserRef

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: variable
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/store/user/userSelectors.ts

This selector returns current logged in user ref.

**Signature:**

```typescript
selectCurrentUserRef: DashboardSelector<ObjRef>
```

## Remarks

It is expected that the selector is called only after the permission state is correctly initialized. Invocations before initialization lead to invariant errors.
