# GetScopeUri

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

Gets an expression for the full URI of one of this registration's scopes, such as api://{clientId}/access_as_user.

## Remarks

Clients request the full URI as the token scope. Throws when the registration has no such scope, or is an existing registration without an application ID URI.

## Definition

```go
func (EntraIdApplicationResource) GetScopeUri(scopeName string) *ReferenceExpression
```

## Parameters

- `scopeName` (`string`) -- The name of a scope added with withScope.

## Returns

`*ReferenceExpression` -- An expression that resolves when the registration's application ID URI is known.

Returns a handle; failures surface later via `Err()`.

## Applies to

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