# AzureConnectorNamespaceMcpAccessPolicyOptions

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

Configures a Microsoft Entra access policy for a managed MCP server configuration.

## Definition

```go
type AzureConnectorNamespaceMcpAccessPolicyOptions struct {
    ObjectId      string                                              `json:"ObjectId"`
    TenantId      string                                              `json:"TenantId"`
    PrincipalType AzureConnectorNamespaceMcpAccessPolicyPrincipalType `json:"PrincipalType"`
}
```

## Fields

- `ObjectId`: `string` -- Gets or sets the Microsoft Entra object ID authorized to call the MCP server.
- `TenantId`: `string` -- Gets or sets the Microsoft Entra tenant ID for `ObjectId`.
- `PrincipalType`: [`AzureConnectorNamespaceMcpAccessPolicyPrincipalType`](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespacemcpaccesspolicyprincipaltype.md) -- Gets or sets whether `ObjectId` identifies a user or group.
