# EntraIdSignInAudience

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/go/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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

## 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 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`.

## Definition

```go
type EntraIdSignInAudience string

const (
    EntraIdSignInAudienceAzureADMyOrg                       EntraIdSignInAudience = "AzureADMyOrg"
    EntraIdSignInAudienceAzureADMultipleOrgs                EntraIdSignInAudience = "AzureADMultipleOrgs"
    EntraIdSignInAudienceAzureADandPersonalMicrosoftAccount EntraIdSignInAudience = "AzureADandPersonalMicrosoftAccount"
    EntraIdSignInAudiencePersonalMicrosoftAccount           EntraIdSignInAudience = "PersonalMicrosoftAccount"
)
```

## Values

- `EntraIdSignInAudienceAzureADMyOrg` = `"AzureADMyOrg"` -- Only work or school accounts in the app's home tenant can sign in. This is the default.
- `EntraIdSignInAudienceAzureADMultipleOrgs` = `"AzureADMultipleOrgs"` -- Work or school accounts in any Microsoft Entra tenant can sign in.
- `EntraIdSignInAudienceAzureADandPersonalMicrosoftAccount` = `"AzureADandPersonalMicrosoftAccount"` -- Work or school accounts in any Microsoft Entra tenant, and personal Microsoft accounts, can sign in.
- `EntraIdSignInAudiencePersonalMicrosoftAccount` = `"PersonalMicrosoftAccount"` -- Only personal Microsoft accounts, such as Outlook.com and Xbox accounts, can sign in.
