title: My Google Appscript is Not Working Because of the GetUser (I Guess...)
body: <pre><code>function onEdit() {
    var sheet = SpreadsheetApp.getActive().getActiveSheet();
    var xCol = sheet.getActiveRange().getColumn();
    var xRow = sheet.getActiveRange().getRow();
  
    if ( xCol == 2 &amp;&amp; sheet.getName() =='Çeviri' ) {
      var user = Session.getActiveUser().getUsername(); 
      sheet.getRange(xRow, 7).setValue(user); 
      }
    }
  </code></pre>
  <p>This script's purpose is; in Google Docs Excel, when a user change a cell in column B in sheet &quot;Çeviri&quot;, it writes that users name 7 horizontal cells away.
  It's working though, in some way.
  When document's owner changes a cell in column B, app sees it and runs. But when another user changes a cell in column B, app doesn't see it and doesn't run.
  I think it's about Google, I guess they changed policies and because of that I can't get any other users name with this script
  <a href="https://developers.google.com/apps-script/reference/base/session#getuser" rel="nofollow noreferrer">https://developers.google.com/apps-script/reference/base/session#getuser</a></p>
  <p>So my question is, is there any way to write this app without &quot;getUser&quot; command? Because I think it's the problem.</p>