# EntraIdScopeOptions

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

Optional settings for a scope exposed by a created registration or described by an existing reference.

## Definition

```go
type EntraIdScopeOptions struct {
    DisplayName            *string `json:"DisplayName"`
    UserConsentDisplayName *string `json:"UserConsentDisplayName"`
    UserConsentDescription *string `json:"UserConsentDescription"`
    RequiresAdminConsent   *bool   `json:"RequiresAdminConsent"`
    IsEnabled              *bool   `json:"IsEnabled"`
    Id                     *string `json:"Id"`
}
```

## Fields

- `DisplayName`: `*string` `optional` -- Gets the scope's title, shown on the admin consent page. Defaults to the scope's name.
- `UserConsentDisplayName`: `*string` `optional` -- Gets the scope's title shown on the consent page for users. Defaults to the display name.
- `UserConsentDescription`: `*string` `optional` -- Gets what the scope allows, shown on the consent page for users. Defaults to the scope's description.
- `RequiresAdminConsent`: `*bool` `optional` -- Gets whether only an administrator can consent to the scope. Defaults to false, which lets users consent.
- `IsEnabled`: `*bool` `optional` -- Gets whether clients can request the scope. Defaults to true.
- `Id`: `*string` `optional` -- Gets the scope's ID as a GUID, which must stay the same across deployments. Aspire derives a stable ID when omitted.
