Here is my current code:

```
function doGet() { 
var app = UiApp.createApplication().setTitle('When Am I Eligible?');
var panel = app.createVerticalPanel().setHeight("400px").setWidth("400px");
//var submitButton = app.createButton('Check');

var key= '???'
var ss = SpreadsheetApp.openById(key);
  var sh = ss.getSheetByName('SHEET');
  var last=ss.getLastRow();
  var data=sh.getRange(1,1,last,2).getValues();
  var valB= Session.getEffectiveUser();
  for(nn=0;nn<data.length;++nn){
    if (data[nn][1]==valB){
      var final = data[nn][0]
      break} ;// if a match in column B is found, break the loop
      }
// var finish = data[nn][0];
 var app = UiApp.getActiveApplication();
 //var statusLabel = app.createLabel().setVisible(true).setText(String.valueOf(finish))
 var answer = app.createLabel("BRO").setVisible(true).setText(final)
 panel.add(answer);
 app.add(panel);
  return app;
}

```

It runs fine under me, but if someone else logged in under our domain uses it, it says they need to have the spreadsheet shared with them. The nature of the spreadsheet prevents this. Is there anyway around this?