User Profile REST API
This page describes how to use the User Profile REST API that is provided by the Management Center for the Pro Edition of Eclipse Mosquitto (MMC).
info
Before sending a command request, make sure that you have been authenticated.
info
Application Tokens REST API can be accessed by a user with any role.
Enable User Profile REST API
This feature is always enabled and does not require any additional steps to be activated
User Profile REST API
User Profile can be accessed via an HTTP request:
GET /api/profile
- get information about the profile of the current user
Example of the reply:
{
"username": "test",
"roles": [
"admin"
],
"connections": [
{
"id": "mosquitto",
"name": "My Mosquitto broker",
"role": "viewer"
},
{
"id": "Cluster1",
"name": "Cluster1",
"role": "viewer"
}
],
"groups": [
{
"name": "viewerGroup",
"addedBy": {
"username": "cedalo"
}
}
]
}
Possible role values: admin
, editor
, viewer
, connectionManager
, monitoringViewer
More operations on the user profile you can find on the page about User Profile Edit feature