# withServicePrincipalOwners

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

Appends a service principal owner supplied as a literal directory object GUID or a parameter.

## Definition

```typescript
interface EntraIdApplicationResource {
  // ... omitted for brevity
  withServicePrincipalOwners(ownerObjectId: string | ParameterResource): EntraIdApplicationResource
}
```

## Parameters

- `ownerObjectId` (`string | ParameterResource`)

## Returns

[EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) `builder`

## Applies to

- [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md)
