---
title: "Gets the default account information set for the scope."
method: GET
path: "/providers/Microsoft.Purview/getDefaultAccount"
---

# Gets the default account information set for the scope.

`GET /providers/Microsoft.Purview/getDefaultAccount`

Get the default account for the scope.

## Query parameters

- `scopeTenantId` string, uuid, required
- `scopeType` 'Tenant' | 'Subscription', required
- `scope` string

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Response `200`

The request has succeeded.

- DefaultAccountPayload — Payload to get and set the default account in the given scope
  - `accountName` string — The name of the account that is set as the default.
  - `resourceGroupName` string — The resource group name of the account that is set as the default.
  - `scope` string — The scope object ID. For example, sub ID or tenant ID.
  - `scopeTenantId` string — The scope tenant in which the default account is set.
  - `scopeType` 'Tenant' | 'Subscription' — The scope where the default account is set.
  - `subscriptionId` string — The subscription ID of the account that is set as the default.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/purview-microsoft-purview-purview.md) · [All operations](https://skmtc.net/azure/apis/purview-microsoft-purview-purview/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/purview-microsoft-purview-purview/revisions/dc9fd4fa962d/schema)
