> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get My Organization API configuration

> Retrieve the My Organization API configuration. Returns the `allowed_strategies`, `connection_deletion_behavior`, `organization_deletion_behavior`, and (when enabled) `third_party_client_access` settings. Identifier attributes such as `user_attribute_profile_id` and `connection_profile_id` are not included. Cache this information, as it does not change frequently.



## OpenAPI

````yaml oas/myorganization/myorganization-api-oas.json GET /config
openapi: 3.1.0
info:
  title: My Organization API
  description: My Organization API
  termsOfService: https://auth0.com/web-terms/
  version: 1.0.0
  license:
    name: UNLICENSED
    url: https://auth0.com
servers:
  - url: https://{tenantDomain}/my-org/v1
    variables:
      tenantDomain:
        default: '{TENANT}.auth0.com'
        description: Auth0 Tenant Domain
  - url: https://{tenantDomain}/my-org
    variables:
      tenantDomain:
        default: '{TENANT}.auth0.com'
        description: Auth0 Tenant Domain
security: []
tags:
  - name: config
    description: Configuration
    x-displayName: Configuration
  - name: orgManagement
    description: Manage your organization.
    x-displayName: Organization Management
  - name: orgDetails
    description: Manage details related to your organization.
    x-displayName: Organization Details Management
  - name: idpManagement
    description: Manage Identity Providers for your Organization.
    x-displayName: Identity Provider Management
  - name: userStoresManagement
    description: Manage User Stores for your Organization.
    x-displayName: User Stores Management
  - name: orgDomainManagement
    description: Manage domains related to your organization
    x-displayName: Domain Management
  - name: orgMemberManagement
    description: Manage members related to your organization
    x-displayName: Member Management
  - name: clientGrantManagement
    description: Manage client grants for your organization
    x-displayName: Client Grant Management
  - name: clientManagement
    description: Manage API clients for your organization
    x-displayName: Client Management
  - name: roles
    description: Manage roles for your organization
    x-displayName: Roles
  - name: orgGroupManagement
    description: Manage connection groups for your organization
    x-displayName: Group Management
paths:
  /config:
    get:
      tags:
        - config
      summary: Get My Organization API configuration
      description: >-
        Retrieve the My Organization API configuration. Returns the
        `allowed_strategies`, `connection_deletion_behavior`,
        `organization_deletion_behavior`, and (when enabled)
        `third_party_client_access` settings. Identifier attributes such as
        `user_attribute_profile_id` and `connection_profile_id` are not
        included. Cache this information, as it does not change frequently.
      operationId: GetOrgConfiguration
      parameters: []
      responses:
        '200':
          $ref: '#/components/responses/GetConfigurationResponse'
        '401':
          $ref: '#/components/responses/ClientErrorUnauthorizedResponse'
        '403':
          $ref: '#/components/responses/ClientErrorInsufficientScopeResponse'
        '404':
          $ref: '#/components/responses/ClientErrorNotFoundOrganizationResponse'
        '429':
          $ref: '#/components/responses/ClientErrorTooManyRequestsResponse'
      security:
        - OAuth2ClientCredentials:
            - read:my_org:configuration
        - OAuth2AuthCode:
            - read:my_org:configuration
      x-codeSamples:
        - lang: typescript
          label: Get My Organization API configuration
          source: |
            import { MyOrganizationClient } from "@auth0/myorganization-js";

            async function main() {
                const client = new MyOrganizationClient({
                    domain: "{YOUR_DOMAIN}",
                    token: "<token>",
                });
                await client.organization.configuration.get();
            }
            main();
        - lang: javascript
          label: Get My Organization API configuration
          source: |
            import { MyOrganizationClient } from "@auth0/myorganization-js";

            async function main() {
                const client = new MyOrganizationClient({
                    domain: "{YOUR_DOMAIN}",
                    token: "<token>",
                });
                await client.organization.configuration.get();
            }
            main();
        - lang: go
          label: Get My Organization API configuration
          source: |
            package example

            import (
                context "context"

                client "github.com/auth0/myorganization-go/v2/client"
                option "github.com/auth0/myorganization-go/v2/option"
            )

            func do() {
                c, err := client.New(
                    "{YOUR_DOMAIN}",
                    option.WithToken(
                        "<token>",
                    ),
                )
                if err != nil {
                    return
                }
                c.Organization.Configuration.Get(
                    context.TODO(),
                )
            }
        - lang: csharp
          label: Get My Organization API configuration
          source: |
            using Auth0.MyOrganizationApi;
            using System.Threading.Tasks;

            public partial class Examples
            {
                public async Task Example() {
                    var client = new MyOrganizationClient(new MyOrganizationClientOptions
                    {
                        Domain = "{YOUR_DOMAIN}",
                        TokenProvider = new DelegateTokenProvider(_ => Task.FromResult("<token>"))
                    });

                    await client.Organization.Configuration.GetAsync();
                }

            }
        - lang: java
          label: Get My Organization API configuration
          source: |-
            package com.example.usage;

            import com.auth0.client.myorganization.auth.MyOrganizationClient;

            public class Example {
                public static void main(String[] args) {
                    MyOrganizationClient client = MyOrganizationClient
                        .builder()
                        .domain("{YOUR_DOMAIN}")
                        .token("<token>")
                        .build();

                    client.organization().configuration().get();
                }
            }
        - lang: python
          label: Get My Organization API configuration
          source: |
            from auth0.myorganization import MyOrganizationClient

            client = MyOrganizationClient(
                domain="{YOUR_DOMAIN}",
                token="<token>",
            )

            client.organization.configuration.get()
components:
  responses:
    GetConfigurationResponse:
      description: Configuration successfully retrieved.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        X-Auth0-Error-Kind:
          $ref: '#/components/headers/X-Auth0-Error-Kind'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GetConfigurationResponseContent'
          examples:
            getOrgDetailsResponseExample:
              $ref: '#/components/examples/GetConfigurationResponseExample'
    ClientErrorUnauthorizedResponse:
      description: 'Unauthorized: token missing, invalid or expired.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorMissingTokenExample:
              $ref: '#/components/examples/ErrorMissingTokenExample'
    ClientErrorInsufficientScopeResponse:
      description: Insufficient scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorInsufficientScopeExample:
              $ref: '#/components/examples/ErrorInsufficientScopeExample'
    ClientErrorNotFoundOrganizationResponse:
      description: Organization not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorOrgNotFoundExample:
              $ref: '#/components/examples/ErrorOrgNotFoundExample'
    ClientErrorTooManyRequestsResponse:
      description: >-
        Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining
        and X-RateLimit-Reset headers.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        X-Auth0-Error-Kind:
          $ref: '#/components/headers/X-Auth0-Error-Kind'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorEndpointRateLimitExample:
              $ref: '#/components/examples/ErrorEndpointRateLimitExample'
  headers:
    X-RateLimit-Limit:
      description: The number of allowed requests in the current rate limit window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: The number of remaining requests in the current rate limit window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: The Unix timestamp indicating when the current rate limit window resets.
      schema:
        type: integer
    Retry-After:
      description: >-
        The number of seconds the client should wait before making a new
        request.
      schema:
        type: integer
    X-Auth0-Error-Kind:
      description: >-
        An indicator that the rate limit exceeded a is global (per tenant)
        limit.
      schema:
        type: string
        enum:
          - global-rate-limit
  schemas:
    GetConfigurationResponseContent:
      type: object
      additionalProperties: false
      properties:
        allowed_strategies:
          type: array
          description: Array of supported strategies
          items:
            $ref: '#/components/schemas/IdpStrategyEnum'
        connection_deletion_behavior:
          $ref: '#/components/schemas/IdpConnectionDeletionBehaviorEnum'
        organization_deletion_behavior:
          $ref: '#/components/schemas/OrganizationDeletionBehaviorEnum'
        third_party_client_access:
          $ref: '#/components/schemas/OrgThirdPartyClientAccessConfig'
    ErrorResponseContent:
      type: object
      additionalProperties: false
      required:
        - type
        - status
        - title
        - detail
      properties:
        type:
          type: string
          description: A URI that describes the error.
          format: uri
        status:
          type: integer
          description: The HTTP status code result of the request.
        title:
          type: string
          description: A brief description of the error.
        detail:
          type: string
          description: A detailed description of the error.
    IdpStrategyEnum:
      type: string
      description: The type of the identity provider
      enum:
        - adfs
        - google-apps
        - oidc
        - okta
        - pingfederate
        - samlp
        - waad
    IdpConnectionDeletionBehaviorEnum:
      type: string
      description: >-
        Specifies whether deletion of a connection is always allowed, or only
        when the connection has no associated users
      enum:
        - allow
        - allow_if_empty
    OrganizationDeletionBehaviorEnum:
      type: string
      description: >-
        Specifies whether deletion of an organization is always allowed
        (`allow`), or only when the organization has no members other than the
        calling user (`allow_if_empty`). Defaults to `allow_if_empty` when not
        configured.
      enum:
        - allow
        - allow_if_empty
    OrgThirdPartyClientAccessConfig:
      type: object
      description: Configuration for third-party client access
      additionalProperties: false
      properties:
        default_value:
          $ref: '#/components/schemas/OrgThirdPartyClientAccessEnum'
        allowed_values:
          type: array
          description: Allowed third-party client access values
          minItems: 1
          uniqueItems: true
          items:
            $ref: '#/components/schemas/OrgThirdPartyClientAccessEnum'
      required:
        - default_value
        - allowed_values
    OrgThirdPartyClientAccessEnum:
      type: string
      description: A valid third-party client access value
      enum:
        - allow
        - block
  examples:
    GetConfigurationResponseExample:
      value:
        allowed_strategies:
          - adfs
          - pingfederate
        connection_deletion_behavior: allow
        organization_deletion_behavior: allow_if_empty
    ErrorMissingTokenExample:
      value:
        type: https://auth0.com/api-errors#A0E-401-0002
        status: 401
        title: Missing Token
        detail: No auth token provided.
    ErrorInsufficientScopeExample:
      value:
        type: https://auth0.com/api-errors#A0E-403-0002
        status: 403
        title: Insufficient Scope
        detail: >-
          The auth token lacks the required scope: Check the API documentation
          for the required scopes for this endpoint.
    ErrorOrgNotFoundExample:
      value:
        type: https://auth0.com/api-errors#A0E-404-0002
        status: 404
        title: Resource Not Found
        detail: The organization does not exist.
    ErrorEndpointRateLimitExample:
      value:
        type: https://auth0.com/api-errors#A0E-429-0003
        status: 429
        title: Endpoint Rate Limit Exceeded
        detail: The endpoint request limit has been exceeded.
  securitySchemes:
    OAuth2ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          x-form-parameters:
            audience: /myorg-api/v1/
          scopes:
            read:my_org:configuration: Read organization configuration
            read:my_org:details: Read organization details
            update:my_org:details: Update organization details
            read:my_org:identity_providers: Read identity providers for organization
            create:my_org:identity_providers: Create identity provider for organization
            update:my_org:identity_providers: Update identity provider for organization
            delete:my_org:identity_providers: Delete identity provider for organization
            update:my_org:identity_providers_detach: Detach identity provider from organization
            create:my_org:identity_providers_domains: Associate organization domain with identity provider
            delete:my_org:identity_providers_domains: Remove organization domain from identity provider
            create:my_org:domains: Create domain for organization
            read:my_org:domains: Read domains for organization
            update:my_org:domains: Update domain for organization
            delete:my_org:domains: Delete domain for organization
            create:my_org:identity_providers_provisioning: Create provisioning configuration for identity provider
            update:my_org:identity_providers_provisioning: Update provisioning configuration for identity provider
            read:my_org:identity_providers_provisioning: Read provisioning configuration for identity provider
            delete:my_org:identity_providers_provisioning: Delete provisioning configuration for identity provider
            create:my_org:identity_providers_tests: Start identity provider tests for organization
            read:my_org:identity_providers_tests: Read identity provider tests for organization
            create:my_org:identity_providers_scim_tokens: Create a provisioning SCIM token for this identity provider
            read:my_org:identity_providers_scim_tokens: List the provisioning SCIM tokens for this identity provider
            delete:my_org:identity_providers_scim_tokens: Delete a provisioning SCIM configuration for an identity provider
            read:my_org:member_invitations: List member invitations for organization
            create:my_org:member_invitations: Create member invitations for organization
            delete:my_org:member_invitations: Delete member invitations for organization
            read:my_org:members: List members for organization
            delete:my_org:memberships: Delete members from organization without deleting underlying users
            read:my_org:member_roles: List Roles for members in organization
            create:my_org:member_roles: Create Roles for members in organization
            delete:my_org:member_roles: Delete Roles from members for organization
            create:my_org:client_grants: Create client grants for client in organization
            create:my_org:clients: Create API clients for organization
            read:my_org:clients: Read API clients for organization
            delete:my_org:clients: Delete API clients for organization
            read:my_org:user_stores: Read user stores for an organization
            delete:my_org:organizations: Delete this organization
            read:my_org:groups: List connection groups for organization
            read:my_org:group_roles: List roles for a group in organization
            create:my_org:group_roles: Assign roles to a group in organization
            delete:my_org:group_roles: Remove roles from a group in organization
    OAuth2AuthCode:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /authorize
          tokenUrl: /oauth/token
          x-form-parameters:
            audience: /myorg-api/v1/
          scopes:
            read:my_org:configuration: Read organization configuration
            read:my_org:details: Read organization details
            update:my_org:details: Update organization details
            read:my_org:identity_providers: Read identity providers for organization
            create:my_org:identity_providers: Create identity provider for organization
            update:my_org:identity_providers: Update identity provider for organization
            delete:my_org:identity_providers: Delete identity provider for organization
            update:my_org:identity_providers_detach: Detach identity provider from organization
            create:my_org:identity_providers_domains: Associate organization domain with identity provider
            delete:my_org:identity_providers_domains: Remove organization domain from identity provider
            create:my_org:domains: Create domain for organization
            read:my_org:domains: Read domains for organization
            update:my_org:domains: Update domain for organization
            delete:my_org:domains: Delete domain for organization
            create:my_org:identity_providers_provisioning: Create provisioning configuration for identity provider
            update:my_org:identity_providers_provisioning: Update provisioning configuration for identity provider
            read:my_org:identity_providers_provisioning: Read provisioning configuration for identity provider
            delete:my_org:identity_providers_provisioning: Delete provisioning configuration for identity provider
            create:my_org:identity_providers_tests: Start identity provider tests for organization
            read:my_org:identity_providers_tests: Read identity provider tests for organization
            create:my_org:identity_providers_scim_tokens: Create a provisioning SCIM token for this identity provider
            read:my_org:identity_providers_scim_tokens: List the provisioning SCIM tokens for this identity provider
            delete:my_org:identity_providers_scim_tokens: Delete a provisioning SCIM configuration for an identity provider
            read:my_org:member_invitations: List member invitations for organization
            create:my_org:member_invitations: Create member invitations for organization
            delete:my_org:member_invitations: Delete member invitations for organization
            read:my_org:members: List members for organization
            delete:my_org:memberships: Delete members from organization without deleting underlying users
            read:my_org:member_roles: List Roles for members in organization
            create:my_org:member_roles: Create Roles for members in organization
            delete:my_org:member_roles: Delete Roles from members for organization
            create:my_org:client_grants: Create client grants for client in organization
            create:my_org:clients: Create API clients for organization
            read:my_org:clients: Read API clients for organization
            delete:my_org:clients: Delete API clients for organization
            read:my_org:user_stores: Read user stores for an organization
            delete:my_org:organizations: Delete this organization
            read:my_org:groups: List connection groups for organization
            read:my_org:group_roles: List roles for a group in organization
            create:my_org:group_roles: Assign roles to a group in organization
            delete:my_org:group_roles: Remove roles from a group in organization

````