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

# updateParticipant()

> Modifies a participant in a Daily call — muting, ejecting, updating permissions, or controlling track subscriptions.

`updateParticipant(sessionId, updates)`

✓ Prebuilt✓ Custom

Modifies a participant, either by sending a message to change their state, or by changing how you see them locally. Returns `this` for chaining.

## Parameters

**sessionId** `string` *required*

The participant's `session_id`, or `'local'` for the local participant.

**updates** `DailyParticipantUpdateOptions` *required*

An object describing what to update. All fields are optional.

**properties**

**setAudio** `boolean`

Mute (`false`) or unmute (`true`) the participant's microphone. Requires the caller to be a **participant admin** (`'participants'` in `canAdmin`). Silently ignored if not possible or if there is no active meeting.

> [!NOTE]
>
> For the local participant, prefer [`setLocalAudio()`](https://docs.daily.co/reference/daily-js/instance-methods/set-local-audio) — though both work. For remote participants, admins can mute (`false`) but only meeting owners can unmute (`true`), and doing so is strongly discouraged as a privacy concern.

**setVideo** `boolean`

Enable (`true`) or disable (`false`) the participant's camera. Requires participant admin permission. Silently ignored if not possible.

> [!NOTE]
>
> For the local participant, prefer [`setLocalVideo()`](https://docs.daily.co/reference/daily-js/instance-methods/set-local-video) — though both work.

> [!WARNING]
>
> Remotely controlling another participant's camera or microphone is a potential privacy issue. Use deliberately. Browsers require the user to have explicitly allowed mic/camera access at least once.

**setScreenShare** `false`

Stop the participant's active screen share. Only `false` is accepted. Requires participant admin permission. Has no effect when `sessionId` is `'local'`.

**eject** `true`

Remove the participant from the call. Only `true` is accepted. Requires participant admin permission.

**setSubscribedTracks** `DailyTrackSubscriptionOptions`

Controls which tracks you receive from this participant. **SFU mode only** — not supported in Daily Prebuilt. Requires [`subscribeToTracksAutomatically`](https://docs.daily.co/reference/daily-js/types/daily-call-options#param-subscribe-to-tracks-automatically) to be `false`; throws an error if it is `true`.

Accepts `true`, `false`, `'staged'`, `'avatar'`, or a per-track object:

```javascript theme={null}
call.updateParticipant('session-id', {
  setSubscribedTracks: {
    audio: true,
    video: 'staged',
    screenVideo: false,
    screenAudio: false,
  },
});
```

* `true` — subscribe: set up a consumer connection and start transmitting data
* `false` — unsubscribe: tear down the consumer connection
* `'staged'` — set up the consumer connection but pause data transmission; no bandwidth cost, but going from `'staged'` → `true` is faster than subscribing from scratch
* `'avatar'` — subscribe to audio only, receive a placeholder for video

When supporting large calls, subscribe to tracks you're rendering, stage tracks on adjacent pages, and unsubscribe from everything else.

**updatePermissions** `DailyParticipantPermissionsUpdate`

Updates the participant's in-call permissions (`canSend`, `canReceive`, `hasPresence`, `canAdmin`). Requires the caller to be a participant admin. See [`DailyParticipantPermissions`](https://docs.daily.co/reference/daily-js/types/daily-participant-permissions) for the full shape and behavior of each field.

```javascript theme={null}
call.updateParticipant('session-id', {
  updatePermissions: {
    canSend: new Set(['video', 'audio']),
    canReceive: { byUserId: { foo: false } },
    hasPresence: false,
    canAdmin: new Set(['participants', 'streaming']),
  },
});
```

## Return value

Returns `this` (the `DailyCall` instance) for chaining.

## See also

> [card] Types
>
> * [DailyParticipantPermissions](https://docs.daily.co/reference/daily-js/types/daily-participant-permissions.md)

> [card] Methods
>
> * [updateParticipants()](https://docs.daily.co/reference/daily-js/instance-methods/update-participants.md)
> * [participants()](https://docs.daily.co/reference/daily-js/instance-methods/participants.md)
> * [participantCounts()](https://docs.daily.co/reference/daily-js/instance-methods/participant-counts.md)
> * [setLocalAudio()](https://docs.daily.co/reference/daily-js/instance-methods/set-local-audio.md)
> * [setLocalVideo()](https://docs.daily.co/reference/daily-js/instance-methods/set-local-video.md)

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

> [card] Guides
>
> * [Participants](https://docs.daily.co/docs/daily-js/concepts/participants.md)
> * [Tracks and media](https://docs.daily.co/docs/daily-js/concepts/tracks.md)

> [card] REST API
>
> * [Meeting token: permissions](https://docs.daily.co/reference/rest-api/meeting-tokens/create-meeting-token.md#body-properties-permissions)


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