Skip to navigation

Get Me

Return the current user’s identity and channels.* permission flags.

Requires a valid Bearer token. On success returns::

{ “user”: “asif”, “groups”: [“Admin”], “permissions”: { “services.add_service”: true, “services.change_service”: true, “services.delete_service”: true } }

The front-end can call this once on load and use the permission flags to disable or hide action buttons (stop, start, delete, edit) rather than discovering access denial only after the user clicks.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

Successful Response
userstring
groupslist of strings
permissionsmap from strings to booleans