> ## 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()`](/reference/react-native/instance-methods/update-waiting-participant).

## Parameters

<ParamField body="updates" type="{ [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.

  <Expandable title="DailyWaitingParticipantUpdateOptions fields" defaultOpen="true">
    <ParamField body="grantRequestedAccess" type="boolean">
      Pass `true` to grant the participant their requested access level. Pass `false` to deny it.
    </ParamField>
  </Expandable>
</ParamField>

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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [updateWaitingParticipant()](/reference/react-native/instance-methods/update-waiting-participant)
    * [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>
