# EntraIdApiPermission Properties

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

A permission, identified by name and optionally by ID, that an application requests from an API.

<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/EntraIdApi.cs#L283)

Gets the permission's ID, or `null` when it is resolved from the API's well-known permissions.

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

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

## Name

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

Gets the permission's name, such as `User.Read`.

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

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

## Type

- Name: `Type`
- Modifiers: `get`
- Returns: [EntraIdPermissionType](/reference/api/csharp/aspire.hosting.azure.entraid/entraidpermissiontype.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApi.cs#L273)

Gets the kind of permission.

```csharp
public EntraIdPermissionType Type { get; }
```
