> ## 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.

# updateWaitingParticipant()

> Grants or denies access to a participant waiting to join the meeting.

`updateWaitingParticipant(id, updates)`

The `id` must correspond to a participant in [`waitingParticipants()`](/reference/react-native/instance-methods/waiting-participants) — passing an unknown ID results in an error.

Once access is granted, the participant is removed from [`waitingParticipants()`](/reference/react-native/instance-methods/waiting-participants) and a [`waiting-participant-removed`](/reference/react-native/events/participant-events#waiting-participant-removed) event fires.

## Parameters

<ParamField body="id" type="string" required>
  The session ID of the waiting participant.
</ParamField>

<ParamField body="updates" type="DailyWaitingParticipantUpdateOptions" required>
  <Expandable title="properties" defaultOpen="true">
    <ParamField body="grantRequestedAccess" type="boolean">
      Pass `true` to grant the participant access to join. Pass `false` to deny it.
    </ParamField>
  </Expandable>
</ParamField>

## Return value

Returns `Promise<{ id: string }>` — resolves with the ID of the updated participant.

## Example

```javascript theme={null}
// Grant access to a specific waiting participant
await call.updateWaitingParticipant('session-id', {
  grantRequestedAccess: true,
});

// Deny access
await call.updateWaitingParticipant('session-id', {
  grantRequestedAccess: false,
});
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [updateWaitingParticipants()](/reference/react-native/instance-methods/update-waiting-participants)
    * [waitingParticipants()](/reference/react-native/instance-methods/waiting-participants)
    * [requestAccess()](/reference/react-native/instance-methods/request-access)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [waiting-participant-added](/reference/react-native/events/participant-events#waiting-participant-added)
    * [waiting-participant-updated](/reference/react-native/events/participant-events#waiting-participant-updated)
    * [waiting-participant-removed](/reference/react-native/events/participant-events#waiting-participant-removed)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Waiting room](/docs/daily-js/guides/waiting-room)
  </Card>
</CardGroup>
