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

# accessState()

> Returns the local participant's current meeting access state. Use this to check whether the participant can join, is waiting in the lobby, or has been denied access.

`accessState()`

✗ Prebuilt✓ Custom

## Return value

Returns a `DailyAccessState` object:

**access** `DailyAccess`

The participant's current access level. Either `'unknown'` (not yet determined) or an object with a `level` field:

* `'unknown'` — access has not yet been determined (before `preAuth()` or `join()`)
* `{ level: 'none' }` — the participant is not allowed to join
* `{ level: 'lobby' }` — the participant can join but will be in the waiting room until granted full access
* `{ level: 'full' }` — the participant has full access to the meeting

**awaitingAccess** `SpecifiedDailyAccess`

Optional. Present when the participant has requested access that hasn't yet been granted or denied. Always `{ level: 'full' }`.

## Example

```javascript theme={null}
const { access, awaitingAccess } = call.accessState();

if (access === 'unknown') {
  // Not yet joined or pre-authed
} else if (access.level === 'lobby') {
  showWaitingRoomUI();
  if (awaitingAccess) {
    showPendingAccessMessage();
  }
} else if (access.level === 'full') {
  showCallUI();
} else if (access.level === 'none') {
  showAccessDeniedMessage();
}
```

## See also

> [card] Methods
>
> * [preAuth()](https://docs.daily.co/reference/daily-js/instance-methods/pre-auth.md)
> * [join()](https://docs.daily.co/reference/daily-js/instance-methods/join.md)
> * [requestAccess()](https://docs.daily.co/reference/daily-js/instance-methods/request-access.md)

> [card] Events
>
> * [access-state-updated](https://docs.daily.co/reference/daily-js/events/lifecycle-events.md#access-state-updated)

> [card] Guides
>
> * [Waiting room](https://docs.daily.co/docs/daily-js/guides/waiting-room.md)


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