> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IUserSettingsService

- Package: [@gooddata/sdk-backend-spi](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-spi/src/user/settings/index.ts

This query service provides access to feature flags that are in effect for particular user.

**Signature:**

```typescript
export interface IUserSettingsService 
```

## Methods

| Method | Description |
| --- | --- |
| [deleteColorPalette()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicedeletecolorpalette) | Delete the active color palette of the current user, returning to the workspace or organization color palette. |
| [deleteLocale()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicedeletelocale) | Delete the locale of the current user, returning to the locale of the workspace or organization. |
| [deleteTheme()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicedeletetheme) | Delete the active theme of the current user, returning to the workspace or organization theme. |
| [getSettings()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicegetsettings) | Asynchronously queries actual feature flags. |
| [setColorPalette(colorPalette)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesetcolorpalette) | Set the active color palette for the current user. It takes precedence over the active color palette of the workspace and of the organization. |
| [setFormatLocale(locale)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesetformatlocale) | Set format locale for the current user |
| [setLocale(locale)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesetlocale) | Set locale for the current user |
| [setMetadataLocale(locale)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesetmetadatalocale) | Set metadata locale for the current user |
| [setSeparators(separators)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesetseparators) | Set separators for the current user |
| [setTheme(theme)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iusersettingsservice/index.md#iusersettingsservicesettheme) | Set the active theme for the current user. It takes precedence over the active theme of the workspace and of the organization. |

## Method details

### IUserSettingsService.deleteColorPalette()

Delete the active color palette of the current user, returning to the workspace or organization color palette.

**Signature:**

```typescript
deleteColorPalette(): Promise<void>;
```
**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.deleteLocale()

Delete the locale of the current user, returning to the locale of the workspace or organization.

**Signature:**

```typescript
deleteLocale(): Promise<void>;
```
**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.deleteTheme()

Delete the active theme of the current user, returning to the workspace or organization theme.

**Signature:**

```typescript
deleteTheme(): Promise<void>;
```
**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.getSettings()

Asynchronously queries actual feature flags.

**Signature:**

```typescript
getSettings(): Promise<IUserSettings>;
```
**Returns:**

Promise&lt;[IUserSettings](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iusersettings/index.md)&gt;

promise of the feature flags of the current user

### IUserSettingsService.setColorPalette()

Set the active color palette for the current user. It takes precedence over the active color palette of the workspace and of the organization.

**Signature:**

```typescript
setColorPalette(colorPalette: string | ObjRef): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| colorPalette | string \| [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | organization color palette id, or a reference to an organization color palette (untyped or typed "colorPalette"). A user setting has no workspace, so a reference typed "workspaceColorPalette" is rejected. |

**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.setFormatLocale()

Set format locale for the current user

**Signature:**

```typescript
setFormatLocale(locale: string): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| locale | string | IETF BCP 47 Code locale ID, for example "en-US", "cs-CZ", etc. |

**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.setLocale()

Set locale for the current user

**Signature:**

```typescript
setLocale(locale: string): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| locale | string | IETF BCP 47 Code locale ID, for example "en-US", "cs-CZ", etc. |

**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.setMetadataLocale()

Set metadata locale for the current user

**Signature:**

```typescript
setMetadataLocale(locale: string): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| locale | string | IETF BCP 47 Code locale ID, for example "en-US", "cs-CZ", etc. |

**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.setSeparators()

Set separators for the current user

**Signature:**

```typescript
setSeparators(separators: ISeparators): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| separators | [ISeparators](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iseparators/index.md) | separators for the current user |

**Returns:**

Promise&lt;void&gt;

promise

### IUserSettingsService.setTheme()

Set the active theme for the current user. It takes precedence over the active theme of the workspace and of the organization.

**Signature:**

```typescript
setTheme(theme: string | ObjRef): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| theme | string \| [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | organization theme id, or a reference to an organization theme (untyped or typed "theme"). A user setting has no workspace, so a reference typed "workspaceTheme" is rejected. |

**Returns:**

Promise&lt;void&gt;

promise
