---
id: get-the-user-roles
title: "Get the user roles"
description: "Gets the user roles corresponding to the agent making the request, or returns a 401 error if the user is unauthenticated."
sidebar_label: "Get the user roles"
hide_title: true
hide_table_of_contents: true
api: eJzFVt9v2zYQ/leIwx4STInioQ+Fij5kQZauK7agdrABUeDS0lliIpEqeXLjCvrfh6MkW7KzYd0e9iTqyDt+3/1kAym6xKqKlNEQwQ2SE5SjqB1aYU2BTiTGWnSV0anSmSDj92WGmkQpn7wsR2Hxc42OAmGssEi11U5I8epiJtBaY4Va7+0qJ2ota8pRk0okYXoOAXSXOHQQNfDDxQV/EqMJNfFSVlXBh5XR4aNjtA24JMdS8qqypkJLqtO26OqCjuVYSlXwgrYVQgSOrNIZtAGslXW01LLEF7dVOhIrTZih9XK3lAmpzVhrZUyBUg/b2uhtaWr38olC/t21hcmUXiam7lxwfD+78y+022CQmNUjJgQBkKKCBXcO7cfe2/POhcfH2wDwWZZVgVOP9j4c7pm6bi9lj80mDiJb46FLOtnICXsDE+6zMdU9RUY9TeBFjiKpreXsZA2m8epi9h9yqUTnZPaPPDx12U4R7nyyG6u+YhqJy33iK6N94SiLKbzAZqzo73OY1FbRFqL7Bh6/EET3D+1DACQzB9E9XPXUOcLwEMDzWWJSnHtMzisVUmcQQXL38QM7Wa6w2P86U9uEESe1LcTZH+LmeiFiyImqKAwLk8giN46i1xevX4eyUuFmFpYY+j4RxiDiONZCnL0TMVz2wD3JSPyI0qIV311eXV3P58vFb79c/xoDtMEO0e2WcqNHmHaCHSpVVsbS0GpcrGM9NA3xdic+z5BOGIf4BuhBp5CjTNG6t80BgRgiEUNPIgbxvZBJgs4tyTyhbmN9GuvKKk0nA6BzzquT09MxxfdyI+c+vCOaE+E+AEY7ZrpjJ79IRWKNlOSe3DdSayb8ouFfHEaKiX4agtV0JBee46dOo+UPE34T6w5kKknuAB7Q7w+ZAs8Lk53w0dM3wBlbIuUmhQgyZOKVpBwiOILPPkG7Qdtlb23ZZS8yh8Pi+cDbIsUNFqYquSo6Sz4inaGmsoZMYoo2CsOGTbVRwznWHlm7qh2ZcjARwEZaJVdF1yMGM7xOcS19q/QwIQDUdcm12f/yx3FtTu2/Wyxuxc5OGwCjmdrb8T0CN/eoBO9xi+QZ/PMtG2EuUyMvuqrX96fblsMzNBo/HjqSvt00sPLJ8ZOxpWR7739fcIz8MR5tfhd2ndGTbgNWXlpcW3T5vzXC81SvTUdngr6u0DocT7iRiHOnO7eZdS5xVErf8vtxcoN08OY5dNBoePyvT6TeH4TPFFaFVP4J4VO56SvoHmSlmPUMuMb4WdUT4pTrcuoemmYlHd7Zom1Z/LlGyyPlYZ/WfrAE0PULX3pPuIUILpMEfafayKJmLEejdFLcN9ccWOYxfv4M4e0XbL3fkno7st003YmuAXFNdiB804X2oW3bPwFVPbH7
sidebar_class_name: "get api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get the user roles"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/me/roles/"}
  context={"endpoint"}
>

</MethodEndpoint>



Gets the user roles corresponding to the agent making the request, or returns a 401 error if the user is unauthenticated.

<ParamsDetails>

</ParamsDetails>

<RequestSchema
  {...require("./get-the-user-roles.RequestSchema.json")}
>

</RequestSchema>

<StatusCodes
  {...require("./get-the-user-roles.StatusCodes.json")}
>

</StatusCodes>
