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

# setUserName()

> Sets the local participant's display name, visible to all other participants.

`setUserName(name, options?)`

In Daily Prebuilt, the name appears as a video overlay and in the chat. In custom call object builds, it is available on the `user_name` property of the local `DailyParticipant` object.

## Parameters

**name** `string` *required*

The display name to set.

**options.thisMeetingOnly** `boolean`

When `true`, the name change applies only for the current meeting and does not persist to the participant's profile. Defaults to `false`.

## Return value

Returns a `Promise` that resolves to `{ userName: string }` — the name that was set.

## Example

```javascript theme={null}
const { userName } = await call.setUserName('Ada Lovelace');
console.log('Name set to:', userName);

// Change name for this meeting only
await call.setUserName('Ada (presenting)', { thisMeetingOnly: true });
```

## See also

> [card] Types
>
> * [DailyCallOptions: userName](https://docs.daily.co/reference/react-native/types/daily-call-options.md#param-user-name)
> * [DailyParticipant](https://docs.daily.co/reference/react-native/types/daily-participant.md)

> [card] Methods
>
> * [participants()](https://docs.daily.co/reference/react-native/instance-methods/participants.md)
> * [setUserData()](https://docs.daily.co/reference/react-native/instance-methods/set-user-data.md)

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

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


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