---
title: "Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Elastic/getElasticOrganizationToAzureSubscriptionMapping"
---

# Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user.

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Elastic/getElasticOrganizationToAzureSubscriptionMapping`

>;
  /**
Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user.

## Parameters

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

## Response `200`

The request has succeeded.

- ElasticOrganizationToAzureSubscriptionMappingResponse — The Azure Subscription ID to which the Organization of the logged in user belongs and gets billed into.
  - `properties` ElasticOrganizationToAzureSubscriptionMappingResponseProperties — The properties of Azure Subscription ID to which the Organization of the logged in user belongs and gets billed into.
    - `billedAzureSubscriptionId` string — The Azure Subscription ID to which the Organization belongs and gets billed into. This is empty for a new user OR a user without an Elastic Organization.
    - `marketplaceSaasInfo` MarketplaceSaaSInfo — Marketplace SAAS Info of the resource.
      - `marketplaceSubscription` MarketplaceSaaSInfoMarketplaceSubscription — Marketplace Subscription
        - `id` string — Marketplace Subscription Id. This is a GUID-formatted string.
        - `publisherId` string — Publisher Id of the Marketplace offer.
        - `offerId` string — Offer Id of the Marketplace offer,
      - `marketplaceName` string — Marketplace Subscription Details: SAAS Name
      - `marketplaceResourceId` string — Marketplace Subscription Details: Resource URI
      - `marketplaceStatus` string — Marketplace Subscription Details: SaaS Subscription Status
      - `billedAzureSubscriptionId` string — The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into.
      - `subscribed` boolean — Flag specifying if the Marketplace status is subscribed or not.
    - `elasticOrganizationId` string — The Elastic Organization Id.
    - `elasticOrganizationName` string — The Elastic Organization Name.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2020-07-01) `bef7fe1e4bee` — 1 info
  - api tag `UserOrganization` removed
- **2026-07-13** (2020-07-01) `764b0272b5e2` — 1 info
  - endpoint added
- **2026-07-13** (2020-07-01) `f26ebd7a2a28` — 2 warning
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`

[Change history](https://skmtc.dev/azure/apis/elastic-microsoft-elastic-elastic/changes/subscriptions/:subscriptionId/providers/Microsoft.Elastic/getElasticOrganizationToAzureSubscriptionMapping/post.md)

---

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