title: VBA Get Username on OSX (or Mac alternative to Environ("username"))
body: <p>My task has been to create a secure (Windows version) Excel workbook that uses macros to validate whether a user has permission to view the contents. In Excel 2010 for Windows, I use the <code>Environ("username")</code> function to accomplish this.</p>
  
  <p>The problem I'm running into is that some users in the organization use a Mac to do their daily work, and <code>Environ</code> does not work with OSX. </p>
  
  <p>Does anyone know of an alternate way to find the username of a Mac? I've looked online but all I can find is how to find the unique identifier of the computer, not the username. </p>
  
  <p>Is what I'm attempting to do even possible with Mac?</p>
  
  <p>Any information is appreciated!</p>