---
id: providers-oauth-2-preview-user-retrieve
title: "providers_oauth2_preview_user_retrieve"
description: "Preview user data for provider"
sidebar_label: "providers_oauth2_preview_user_retrieve"
hide_title: true
hide_table_of_contents: true
api: eJytVF1v2jAU/SuWnzYJ4Yr2YeJpbKsqpHVFa/c0IWSSC3EJtms7dFGU/7574wBuodvD9pTYvh/nnPvRcGPByaCMnuZ8zK0zO5WD8wsjq1CMFtbBTsHzovLgFg6CU7ADPuA5+MwpS47oNotWjKxYLoNkK+PYPhiaW+nkFgIG5uOfDVfk9FSBq/FN4wse0aPLgjc+K2Ar+bjhobb0pnSANT617aB3tjIUR1+V/9HrNdwJq7TC9Ky3YDtZ0ikHHdSqVnrNQqE8u5uQBuLOgp5+YbOezhBzOXiqlAOULLgK2vmAB7kmbkcFOV56yCqnQt2RJkEpwQZPc3Jx4K3RHjxhHl1c0CczCEkH+pXWlirraiMePQFvTjma5SNk4c2CFOYZqQBDGA7DxgIhsy0Gh5ztlOyeETS2Qai7e6TvmYcS46KJ0ky+qGQ0VRF13x7nAMk8V4RGlrPUpSXeMr/TZd2L16Zy/jyEJE1VKKFjE+HdRnQ9OeyGk8pSra+iki8fPsmcURbwIdpc/ke1b0CDUxmbzKbs2jlzqlMOQaoyieRxkvSaoGQmhzMPr1TpAySi9EljvrNS4BXOXGFosNcQujHEqRlzcWhSEcdcNCpvRTrrggYK3G4/sZUryVFaJXaXgrdJc9+TSpFm0uIHQkUIdj+ddF6CdHGUcUBXprPsKR3dB5wyRyKji9HV8MNwdCL7rdzQqO69YvGYV1tbAg0pVVdmXXWxjCQ/L6Aszce1OWQaKkNFwNIDTiKZ9ivldvqAISJtouDHQqxVKKrlMDNbkYQQx79laZYCU2nxdfr5+tv9dUfTGh+2UifBD/qzqD+z6QJ9a80m/fr3jdurH+BXELZESESzo9P0bZDuqgGPQPBn3C3TtBfwSI1XIA3yapql9PDDlW1L13GNU4/kystlSf26kqWHAd9A/XKxd3u26805HZwi+/O+bzJ/970fi/fs3/f4WZX6S6nrFPKeDsrTztGqwC2GpAh8fJhkGdiQuJysFGJ9mMiba2owUj0Zln44Bvsfin4WDhahs3gwG9BYiD26QGcC2La/AYzfumE=
sidebar_class_name: "get api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"providers_oauth2_preview_user_retrieve"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/providers/oauth2/{id}/preview_user/"}
>
  
</MethodEndpoint>



Preview user data for provider

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Path Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this OAuth2/OpenID Provider.","required":true}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Query Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"in":"query","name":"for_user","schema":{"type":"integer"}}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"200"}
        value={"200"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <span
                              className={"openapi-schema__container"}
                            >
                              <strong
                                className={"openapi-schema__property"}
                              >
                                preview
                              </strong><span
                                className={"openapi-schema__name"}
                              >
                                 object
                              </span><span
                                className={"openapi-schema__divider"}
                              >
                                
                              </span><span
                                className={"openapi-schema__required"}
                              >
                                required
                              </span>
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            <SchemaItem
                              name={"property name*"}
                              required={false}
                              schemaName={"any"}
                              qualifierMessage={undefined}
                              schema={{"type":"object","additionalProperties":{},"readOnly":true}}
                              collapsible={false}
                              discriminator={false}
                            >
                              
                            </SchemaItem>
                          </div>
                        </details>
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"preview\": {}\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"400"}
        value={"400"}
      >
        <div>
          
          
          Bad request
          
          
        </div><div>
          
        </div>
      </TabItem><TabItem
        label={"403"}
        value={"403"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"detail"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": \"string\",\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      