---
descriptions:
  get_profile:
    access_token: >-
      The authorization value which was returned along with the profile when
      calling the [Get a Profile and Token
      endpoint](/reference/sso/profile/get-profile-and-token).
reference:
  curl:
    - key: get_profile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: /sso/profile
      type: GET
      parameters:
        - key: access_token
          type: string
          description: (get_profile.access_token)
      returns:
        - (profile)
  dotnet:
    - key: GetProfile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: ssoService.GetProfile()
      parameters:
        - key: options
          type: GetProfileOptions
          expanded: true
          properties:
            - key: AccessToken
              type: string
              description: (get_profile.access_token)
        - (cancellationToken)
      returns:
        - key: Task<Profile>
          description: (profile.self)
  ruby:
    - key: get_profile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: SSO.get_profile()
      parameters:
        - key: access_token
          type: String
          description: (get_profile.access_token)
      returns:
        - (Profile)
  php:
    - key: getProfile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: $sso->getProfile()
      parameters:
        - key: accessToken
          type: string
          description: (get_profile.access_token)
      returns:
        - (Profile)
  python:
    - key: get_profile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: sso.get_profile()
      parameters:
        - key: access_token
          type: str
          description: (get_profile.access_token)
      returns:
        - (Profile)
  js:
    - key: getProfile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: sso.getProfile()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: accessToken
              type: string
              description: (get_profile.access_token)
      returns:
        - (Profile)
  go:
    - key: GetProfile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: sso.GetProfile()
      parameters:
        - (ctx)
        - key: opts
          type: sso.GetProfileOpts
          expanded: true
          properties:
            - key: AccessToken
              type: string
              description: (get_profile.access_token)
      returns:
        - key: profile
          type: sso.Profile
          description: (profile.self)
        - (err)
  java:
    - key: getProfile
      url: /reference/sso/profile/get-user-profile
      id: get_profile
      title: sso.getProfile()
      parameters:
        - key: accessToken
          type: String
          description: (get_profile.access_token)
      returns:
        - (Profile)
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/sso/profile/get-user-profile.mdx
---

## Get a User Profile

Exchange an access token for a user’s [Profile](/reference/sso/profile). Because this profile is returned in the [Get a Profile and Token endpoint](/reference/sso/profile/get-profile-and-token) your application usually does not need to call this endpoint. It is available for any authentication flows that require an additional endpoint to retrieve a user’s profile.

<CodeBlock referenceId="get_profile">
  <CodeBlockTab title="Request" file="get-user-profile-request" />
  <CodeBlockTab title="Response" file="get-user-profile-response" />
</CodeBlock>
