Developer / Reference / HTTP API / Endpoints

User roles

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com

Get user roles

GET /api/userRole

Scope: ADMIN

Response

A list of available user roles.

Assign user role to user

PUT /api/userRole/assign

Scope: ADMIN

Assign a role to a user.

Request

Body parameters

  • name Name of the role
  • userID User ID

Response

The updated user object.

Revoke user role from user

PUT /api/userRole/revoke

Scope: ADMIN

Revoke a role from a user.

Request

Body parameters

  • name Name of the role
  • userID User ID

Response

The updated user object.