Get a User's Roles - Fluid Topics - 3.4 - Reference Guides

Fluid Topics API Reference Guide

Product
Fluid Topics
Fluid Topics Version
3.4
Category
Reference Guides
Language
English
Target Audience
public

This web service returns the roles a user belongs to.

It distinguishes between roles coming from authentication and manually set roles.

For more information about roles, see User Roles.

Method

Endpoint

GET

/api/users/$USER_ID/roles

Where:

  • $USER_ID is the user identifier.

Output Example

{
id: "a43eb18a-3f48-4732-9389-61b540ce9d0d",
manualRoles: [ ],
authenticationRoles: [
"HTML_EXPORT_USER",
"SAVED_SEARCH_USER",
"ADMIN",
"PERSONAL_BOOK_SHARE_USER",
"PERSONAL_BOOK_USER",
"PDF_EXPORT_USER",
"KHUB_ADMIN"
],
defaultRoles: [
"HTML_EXPORT_USER",
"SAVED_SEARCH_USER",
"PERSONAL_BOOK_USER",
"PDF_EXPORT_USER"
]
}