# EntraIdExternalApiPermission

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

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.
