Issue
I am unsure if I can determine the OS user in Appsmith and if there is access to System.getProperty("user.name"). I need to know if this feature is supported or not as I am self-hosting Appsmith. I reached out to ask, but I need confirmation on how to determine the user. An engineer said it's not possible to get the OS username but I can extract the name of the user logged into the application using {{appsmith.user.name}} according to the Appsmith Context Object documentation.
Resolution
The user cannot determine the OS user in AppSmith. However, it is possible to extract the name of the user logged into the application using the context object provided by AppSmith. You can use the user object to obtain the user's name with {{appsmith.user.name}}
. This context object appsmith
provides information regarding the current state of the application, including the user information.