---
search:
  tags:
    - Users/Roles & access
    - POST
seo:
  description: >-
    Assigns an institution-wide or course-specific role. Pass courseCodes to
    scope the… Reference for the POST /users/{id}/roles endpoint in the Fuxam
    API v4.
sidebar:
  label: Assign a role to a user
  badge: POST
title: Assign a role to a user
type: openapi-operation
---
Assigns an institution-wide or course-specific role. Pass `courseCodes` to scope the assignment.

`POST /users/{id}/roles`
