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

# IAuthenticatedPrincipal

- 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/backend/index.ts
- Guides: [Renew the session without a redirect](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/renew-session-silently/index.md)

Describes user, which is currently authenticated to the backend.

**Signature:**

```typescript
export interface IAuthenticatedPrincipal 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [userId](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iauthenticatedprincipal/index.md#iauthenticatedprincipaluserid) |  | string | Unique identifier of the authenticated user. |
| [userMeta?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iauthenticatedprincipal/index.md#iauthenticatedprincipalusermeta) |  | any | _(Optional)_ Backend-specific user metadata. |

## Property details

### IAuthenticatedPrincipal.userId

Unique identifier of the authenticated user.

**Signature:**

```typescript
userId: string;
```

#### Remarks

The identifier semantics MAY differ between backend implementations. The client code SHOULD NOT make assumptions on the content (such as userId being valid email and so on).

### IAuthenticatedPrincipal.userMeta

Backend-specific user metadata.

**Signature:**

```typescript
userMeta?: any;
```
