Get a User's Roles - Fluid Topics - 3.6

Use Fluid Topics Web API

Product
Fluid Topics
FT_Version
3.6
Category
Technical Notes
language
English

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"
]
}