# EntraIdAppRole Properties

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [EntraIdAppRole](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapprole.md)
- Kind: `Properties`
- Members: `6`

Describes an application role declared on a Microsoft Entra ID application registration created by Aspire.

<a id="allowedmembertypes"></a>

## AllowedMemberTypes

- Name: `AllowedMemberTypes`
- Modifiers: `get`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L86)

Gets the member types the role can be assigned to, passed through to Microsoft Graph (for example `User` or `Application`).

```csharp
public IReadOnlyList<string> AllowedMemberTypes { get; }
```

<a id="description"></a>

## Description

- Name: `Description`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L81)

Gets the description shown in assignment and consent experiences.

```csharp
public string Description { get; }
```

<a id="displayname"></a>

## DisplayName

- Name: `DisplayName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L76)

Gets the display name shown in the Microsoft Entra admin center.

```csharp
public string DisplayName { get; }
```

<a id="id"></a>

## Id

- Name: `Id`
- Modifiers: `nullable` `get`
- Returns: `Guid?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L91)

Gets the explicitly configured role ID, or `null` when the ID is derived from the application name and role value.

```csharp
public Guid? Id { get; }
```

<a id="isenabled"></a>

## IsEnabled

- Name: `IsEnabled`
- Modifiers: `get`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L96)

Gets whether the role can be assigned to new principals. A disabled role is still issued in tokens for existing assignments, so this is not access revocation. Microsoft Graph requires a role to be disabled before it is removed.

```csharp
public bool IsEnabled { get; }
```

<a id="value"></a>

## Value

- Name: `Value`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdAppRole.cs#L71)

Gets the value emitted in the `roles` claim of tokens issued with this role.

```csharp
public string Value { get; }
```
