# FoundryRole

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents ATS-compatible Microsoft Foundry roles.

## Definition

```go
type FoundryRole string

const (
    FoundryRoleCognitiveServicesOpenAIContributor FoundryRole = "CognitiveServicesOpenAIContributor"
    FoundryRoleCognitiveServicesOpenAIUser        FoundryRole = "CognitiveServicesOpenAIUser"
    FoundryRoleCognitiveServicesUser              FoundryRole = "CognitiveServicesUser"
)
```

## Values

- `FoundryRoleCognitiveServicesOpenAIContributor` = `"CognitiveServicesOpenAIContributor"` -- Allows full management of Azure OpenAI resources.
- `FoundryRoleCognitiveServicesOpenAIUser` = `"CognitiveServicesOpenAIUser"` -- Allows using Azure OpenAI models for inference.
- `FoundryRoleCognitiveServicesUser` = `"CognitiveServicesUser"` -- Allows access to Azure Cognitive Services resources.
