# EntraIdExternalApiPermission

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/go/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

A permission of an API that is not an Aspire resource.

## Definition

```go
type EntraIdExternalApiPermission struct {
    Name string                 `json:"Name"`
    Type *EntraIdPermissionType `json:"Type"`
    Id   *string                `json:"Id"`
}
```

## Fields

- `Name`: `string` -- Gets the permission's name, such as User.Read.
- `Type`: [`*EntraIdPermissionType`](/reference/api/go/aspire.hosting.azure.entraid/entraidpermissiontype.md) `optional` -- Gets the kind of permission. Defaults to a delegated permission.
- `Id`: `*string` `optional` -- Gets the permission's ID as a GUID. Required for a custom API and for a permission that a well-known API does not list by name.
