# EntraIdSignInAudience

- Kind: `enum`
- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdSignInAudience.cs)

Specifies which Microsoft accounts can sign in to an Entra ID application.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public enum EntraIdSignInAudience
```

## Remarks

The value must match the "Supported account types" setting of the app registration in the Azure portal. The names match the `signInAudience` property of the Microsoft Graph [application](https://learn.microsoft.com/graph/api/resources/application) resource, which stores that setting.

Microsoft.Identity.Web reads the sign-in audience from its `TenantId` setting. A single-tenant app uses its home tenant there. The other audiences use the keywords `organizations`, `common`, or `consumers` instead, and pass the home tenant as `AppHomeTenantId`.

## Enum Members

| Name | Value | Description |
| --- | --- | --- |
| AzureADMyOrg | 0 | Only work or school accounts in the app's home tenant can sign in. This is the default. |
| AzureADMultipleOrgs | 1 | Work or school accounts in any Microsoft Entra tenant can sign in. |
| AzureADandPersonalMicrosoftAccount | 2 | Work or school accounts in any Microsoft Entra tenant, and personal Microsoft accounts, can sign in. |
| PersonalMicrosoftAccount | 3 | Only personal Microsoft accounts, such as Outlook.com and Xbox accounts, can sign in. |
