# MicrosoftGraphPermissionScope

- Kind: `class`
- 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.EntraId.Provisioning`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphApiConstructs.cs)
- Inherits: `ProvisionableConstruct`

Models an entry of an application's `api.oauth2PermissionScopes`, a delegated permission that the API exposes.

## Definition

```csharp
namespace Aspire.Hosting.Azure.EntraId.Provisioning;

public sealed class MicrosoftGraphPermissionScope
    : Azure.Provisioning.Primitives.ProvisionableConstruct
{
    // ...
}
```

## Constructors

- [MicrosoftGraphPermissionScope](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/constructors.md#constructor)

## Properties

- [AdminConsentDescription](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#adminconsentdescription) : `BicepValue<string>` `get; set` -- Gets or sets the scope's description for administrator consent.
- [AdminConsentDisplayName](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#adminconsentdisplayname) : `BicepValue<string>` `get; set` -- Gets or sets the scope's display name for administrator consent.
- [Id](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#id) : `BicepValue<string>` `get; set` -- Gets or sets the stable ID of the delegated permission.
- [IsEnabled](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#isenabled) : `BicepValue<bool>` `get; set` -- Gets or sets whether the scope is available for use.
- [Type](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#type) : `BicepValue<string>` `get; set` -- Gets or sets who can consent to the scope: `Admin` or `User`.
- [UserConsentDescription](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#userconsentdescription) : `BicepValue<string>` `get; set` -- Gets or sets the scope's description for user consent.
- [UserConsentDisplayName](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#userconsentdisplayname) : `BicepValue<string>` `get; set` -- Gets or sets the scope's display name for user consent.
- [Value](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphpermissionscope/properties.md#value) : `BicepValue<string>` `get; set` -- Gets or sets the scope value included in access tokens.
