There are occasions when you may want to get the current logged in user for the Umbraco Back Office. In Umbraco 13 this is really easy to do, so here is a simple example of getting the back office logged in user:
Within your controller, inject the IBackOfficeSecurityAccessor: