# @microsoft/managed-apps

The client SDK for Microsoft managed apps. Import it in your app to access the app context, the signed-in user, the typed data client (Dataverse and connector operations), and developer telemetry.

The package has no root entry; import from one of the subpaths below. Usage and full API details are covered in the [Microsoft managed apps documentation](https://go.microsoft.com/fwlink/?LinkId=2369054).

### `@microsoft/managed-apps/app`

`getContext`, `setConfig`, `IContext`, `IConfig`.

### `@microsoft/managed-apps/auth`

`getUser`, `IUser`.

`getUser()` returns the signed-in user's `fullName`, `objectId`, and `tenantId`:

```typescript
import { getUser } from '@microsoft/managed-apps/auth';

const user = await getUser();
// {
//   fullName: 'Alex Example',
//   objectId: '11111111-1111-4111-8111-111111111111',
//   tenantId: '22222222-2222-4222-8222-222222222222'
// }
```

### `@microsoft/managed-apps/data`

`getClient`, `DataClient`, `IOperationOptions`, `IOperationResult`, `serializeMultiSelectPicklistFields`, `deserializeMultiSelectPicklistFields`.

### `@microsoft/managed-apps/telemetry`

`initializeLogger`, `ILogger`, and the `Metric` types.
