# MicrosoftGraphResourceAccess

- 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 a single permission in a [MicrosoftGraphRequiredResourceAccess](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphrequiredresourceaccess.md).

## Definition

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

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

## Constructors

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

## Properties

- [Id](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphresourceaccess/properties.md#id) : `BicepValue<string>` `get; set` -- Gets or sets the ID of the requested scope or application role.
- [Type](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphresourceaccess/properties.md#type) : `BicepValue<string>` `get; set` -- Gets or sets the permission type: `Scope` for a delegated permission or `Role` for an application role.
