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

# updateWaitingParticipants()

> Grants or denies access to multiple waiting participants at once.

`updateWaitingParticipants(updates)`

Use this instead of looping over [`updateWaitingParticipant()`](https://docs.daily.co/reference/react-native/instance-methods/update-waiting-participant).

## Parameters

**updates** `\{ [id: string]: DailyWaitingParticipantUpdateOptions \}` *required*

An object whose keys are waiting participant session IDs and whose values are update options. Accepts the special key `'*'` to apply updates to all waiting participants not otherwise explicitly specified.

**DailyWaitingParticipantUpdateOptions fields**

**grantRequestedAccess** `boolean`

Pass `true` to grant the participant their requested access level. Pass `false` to deny it.

## Return value

Returns `Promise<{ ids: string[] }>` — resolves with an array of the updated participants' IDs.

## Examples

```javascript theme={null}
// Grant access to all waiting participants
await call.updateWaitingParticipants({
  '*': { grantRequestedAccess: true },
});
```

```javascript theme={null}
// Grant one participant, deny another
await call.updateWaitingParticipants({
  'session-id-1': { grantRequestedAccess: true },
  'session-id-2': { grantRequestedAccess: false },
});
```

```javascript theme={null}
// Deny all except one
await call.updateWaitingParticipants({
  '*': { grantRequestedAccess: false },
  'session-id-1': { grantRequestedAccess: true },
});
```

## See also

> [card] Methods
>
> * [updateWaitingParticipant()](https://docs.daily.co/reference/react-native/instance-methods/update-waiting-participant.md)
> * [waitingParticipants()](https://docs.daily.co/reference/react-native/instance-methods/waiting-participants.md)
> * [requestAccess()](https://docs.daily.co/reference/react-native/instance-methods/request-access.md)

> [card] Events
>
> * [waiting-participant-added](https://docs.daily.co/reference/react-native/events/participant-events.md#waiting-participant-added)
> * [waiting-participant-updated](https://docs.daily.co/reference/react-native/events/participant-events.md#waiting-participant-updated)
> * [waiting-participant-removed](https://docs.daily.co/reference/react-native/events/participant-events.md#waiting-participant-removed)

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