# EntraIdApplicationResource.GetScopeUri

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/go/aspire.hosting.azure.entraid.md)
- Defined on: [EntraIdApplicationResource](/reference/api/go/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

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
type EntraIdApplicationResource interface {
    // ... omitted for brevity
    GetScopeUri(scopeName string) *ReferenceExpression
}
```

## Signature

```go
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()`.

## Defined on

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