# FoundryRole

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

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.
