REST API: Send username in API request
Author: mrkmcnameeCreated Aug 13, 2026Updated Sep 21, 2026
Hi!
We are using REST API endpoints to populate the views in NocoBase from our backend. The endpoints use token authorization for security. NocoBase users login using SSO. The two authorization mechanisms are completely separate.
For audit logging in the backend I want to track which NocoBase user triggered the REST API request. I thought it could done by including a header with the relevant field, e.g. “X-Username”, but that is not an option it seems:
What are the alternatives for sending the NocoBase username in a REST API request?
Could this be handled as a feature request if not currently possible?
Cheers, Kevin
Source: nocobase/nocobase