---
id: add-a-role-to-a-user
title: "Add a role to a user."
description: "Add a role to a user."
sidebar_label: "Add a role to a user."
hide_title: true
hide_table_of_contents: true
api: eJy9Uj1v2zAU/CvCTQ1AVMjKzd081cjHJGigzReLiEQq5JMRg+B/D54ku3XRZOjQRaCI4929e5dhKR2iG9kFD42NtZWpYuip4lCZakoUv0OBzTFBN3gIPUHhOVFEq5DoMEXHZ+gm4weZSLHaTNxBN21pFUYTzUBMMc2IdOhoMNAZfB4JGomj80cUhUhvk4tkoTlOpODNIADR31ooOHE3Gu5Q1L8QyUh/ErWCTmPwiRJ0LgoDcResAEJiqAWnUcvrOi8cpTbW1nlxViAhxNNlwin2gj/dz+yXeB7F7qxxG9LVfsc8CtOMg8Z+RqEU8fsSBCkSy45O97IQx70gd8YfQ+98tfVMx2hkj9Vmt5UoZIjBeHm9pvDZem9KkHEInsnzV31YfDO9cz32xnnRm4fPa2jNHDkU9DV6Y+Wr1522Cp2krBvkvDeJnmNfily/TRSlUq3CyURn9jJpk2FdkrOFfjF9oi9sf3tYW3BXfWZ2vTT+DJHpJ/mDwiudf/VOuvYfVdekSvt7FXc/H58kvNvGrA1Rl4Pk81fynBfEU3glX8pVi+VfpEr5AJvpVxU=
sidebar_class_name: "post api-method"
info_path: 03-Pangolin/07-API/pangolin-integration-api
custom_edit_url: null
---

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";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Add a role to a user."}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/role/{roleId}/add/{userId}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Add a role to a user.

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

<ParamsDetails
  parameters={[{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"roleId","in":"path"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{}}
>
  
</StatusCodes>


      