# CollaborationUsersConfig

interface

The configuration of the Users features.

```typescript
ClassicEditor
	.create( {
		users: ... // Users configuration.
	} )
	.then( ... )
	.catch( ... );
```

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

<a id="properties">

## Properties

<a id="member-anonymousUserId">

### `anonymousUserId?: string`

User ID value that will be used for the anonymous user.

<a id="member-colorsCount">

### `colorsCount?: number`

Number of defined colors that are randomly assigned to users.

<a id="member-getInitialsCallback">

### `getInitialsCallback?: ( name: string ) => string`

A callback function that customizes the way user initials are generated.

If provided, this function will be called with the user's full name as the argument, and it should return a string representing the user's initials.

Example usage:

```typescript
ClassicEditor
	.create( {
		users: {
			getInitialsCallback: ( name: string ) => {
				// Custom logic to generate initials.
				return name.split( ' ' )[ 0 ].charAt( 0 ) + name.split( ' ' )[ 1 ].charAt( 0 );
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
