Access to user object in admin page view

Is there a way to access the current loggedin user object in the admin page view?
specifically dac/ui/src/pages/AdminPage/AdminPageView.js

I am trying to restrict access to that page for only the first admin configured user and prevent any other added user afterwards from accessing the admin page.

The correct way to do it is through the admin flag in the user object, but since that is a hard coded value. I am trying an alternative.