# MicrosoftGraphOAuth2PermissionGrant Constructors

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [MicrosoftGraphOAuth2PermissionGrant](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphoauth2permissiongrant.md)
- Kind: `Constructors`
- Members: `1`

Models a delegated permission grant ( `oauth2PermissionGrant`) that consents to scopes of an API on behalf of users.

<a id="constructor"></a>
<a id="constructor-string"></a>

## MicrosoftGraphOAuth2PermissionGrant(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphPermissionGrants.cs#L14)

Models a delegated permission grant ( `oauth2PermissionGrant`) that consents to scopes of an API on behalf of users.

```csharp
public sealed class MicrosoftGraphOAuth2PermissionGrant
{
    public MicrosoftGraphOAuth2PermissionGrant(
        string bicepIdentifier)
    {
        // ...
    }
}
```

## Parameters

- `bicepIdentifier` (`string`)
  The resource's identifier in the Bicep module.
