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

# Récupérer la configuration de l’API My organisation

> Récupérez la configuration de l’API My organisation. Renvoie les paramètres `allowed_strategies`, `connection_deletion_behavior`, `organization_deletion_behavior` et, lorsqu’il est activé, `third_party_client_access`. Les attributs d’identifiant comme `user_attribute_profile_id` et `connection_profile_id` ne sont pas inclus. Mettez ces informations en cache, car elles ne changent pas fréquemment.



## OpenAPI

````yaml fr-ca/oas/myorganization/myorganization-api-oas.json GET /config
openapi: 3.1.0
info:
  title: My Organization API
  description: API My organisation
  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: Domaine du tenant Auth0
  - url: https://{tenantDomain}/my-org
    variables:
      tenantDomain:
        default: '{TENANT}.auth0.com'
        description: Domaine du tenant Auth0
security: []
tags:
  - name: config
    description: Configuration
    x-displayName: Configuration
  - name: orgManagement
    description: Gérez votre organisation.
    x-displayName: Organization Management
  - name: orgDetails
    description: Gérez les détails liés à votre organisation.
    x-displayName: Organization Details Management
  - name: idpManagement
    description: Gérer les fournisseurs d’identité de votre organisation.
    x-displayName: Identity Provider Management
  - name: userStoresManagement
    description: Gérer les magasins d'utilisateurs de votre organisation.
    x-displayName: User Stores Management
  - name: orgDomainManagement
    description: Gérer les domaines de votre organisation
    x-displayName: Domain Management
  - name: orgMemberManagement
    description: Gérer les membres de votre organisation
    x-displayName: Member Management
  - name: clientGrantManagement
    description: Gérer les autorisations client de votre organisation
    x-displayName: Client Grant Management
  - name: clientManagement
    description: Gérer les clients API de votre organisation
    x-displayName: Client Management
  - name: roles
    description: Gérer les rôles de votre organisation
    x-displayName: Roles
  - name: orgGroupManagement
    description: Gérer les groupes de connexion de votre organisation
    x-displayName: Group Management
paths:
  /config:
    get:
      tags:
        - config
      summary: Récupérer la configuration de l’API My organisation
      description: >-
        Récupérez la configuration de l’API My organisation. Renvoie les
        paramètres `allowed_strategies`, `connection_deletion_behavior`,
        `organization_deletion_behavior` et, lorsqu’il est activé,
        `third_party_client_access`. Les attributs d’identifiant comme
        `user_attribute_profile_id` et `connection_profile_id` ne sont pas
        inclus. Mettez ces informations en cache, car elles ne changent pas
        fréquemment.
      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: La configuration a été récupérée avec succès.
      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: "Non autorisé\_: jeton manquant, invalide ou expiré."
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorMissingTokenExample:
              $ref: '#/components/examples/ErrorMissingTokenExample'
    ClientErrorInsufficientScopeResponse:
      description: Scope insuffisant.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorInsufficientScopeExample:
              $ref: '#/components/examples/ErrorInsufficientScopeExample'
    ClientErrorNotFoundOrganizationResponse:
      description: Organisation introuvable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseContent'
          examples:
            errorOrgNotFoundExample:
              $ref: '#/components/examples/ErrorOrgNotFoundExample'
    ClientErrorTooManyRequestsResponse:
      description: >-
        Trop de requêtes. Vérifiez les en-têtes X-RateLimit-Limit,
        X-RateLimit-Remaining et X-RateLimit-Reset.
      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: >-
        Le nombre de requêtes autorisées dans la fenêtre actuelle de limite de
        débit.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: >-
        Le nombre de requêtes restantes dans la fenêtre actuelle de limite de
        débit.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: >-
        L’horodatage Unix indiquant quand la fenêtre actuelle de limite de débit
        est réinitialisée.
      schema:
        type: integer
    Retry-After:
      description: >-
        Le nombre de secondes que le client doit attendre avant d’effectuer une
        nouvelle requête.
      schema:
        type: integer
    X-Auth0-Error-Kind:
      description: >-
        Indicateur signalant que la limite de débit dépassée est une limite
        globale (par tenant).
      schema:
        type: string
        enum:
          - global-rate-limit
  schemas:
    GetConfigurationResponseContent:
      type: object
      additionalProperties: false
      properties:
        allowed_strategies:
          type: array
          description: Tableau des stratégies prises en charge
          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: URI qui décrit l’erreur.
          format: uri
        status:
          type: integer
          description: Le code d’état HTTP résultant de la requête.
        title:
          type: string
          description: Brève description de l’erreur.
        detail:
          type: string
          description: Description détaillée de l’erreur.
    IdpStrategyEnum:
      type: string
      description: Le type de fournisseur d’identité
      enum:
        - adfs
        - google-apps
        - oidc
        - okta
        - pingfederate
        - samlp
        - waad
    IdpConnectionDeletionBehaviorEnum:
      type: string
      description: >-
        Indique si la suppression d’une connexion est toujours autorisée, ou
        seulement lorsque la connexion n’a aucun utilisateur associé
      enum:
        - allow
        - allow_if_empty
    OrganizationDeletionBehaviorEnum:
      type: string
      description: >-
        Indique si la suppression d’une Organization est toujours autorisée
        (`allow`) ou seulement lorsque l’Organization ne compte aucun membre
        autre que l’utilisateur à l’origine de l’appel (`allow_if_empty`). La
        valeur par défaut est `allow_if_empty` si ce paramètre n’est pas
        configuré.
      enum:
        - allow
        - allow_if_empty
    OrgThirdPartyClientAccessConfig:
      type: object
      description: Configuration de l'accès des clients tiers
      additionalProperties: false
      properties:
        default_value:
          $ref: '#/components/schemas/OrgThirdPartyClientAccessEnum'
        allowed_values:
          type: array
          description: Valeurs autorisées pour l'accès des clients tiers
          minItems: 1
          uniqueItems: true
          items:
            $ref: '#/components/schemas/OrgThirdPartyClientAccessEnum'
      required:
        - default_value
        - allowed_values
    OrgThirdPartyClientAccessEnum:
      type: string
      description: Une valeur d’accès client tiers valide
      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

````