I'm developing a collaborative intranet site, and I've a problem with Google Apps Script in Google Site. When I develop, I am connected with my user account. But, all the scripts I write will execute under my account's context but I want that my scripts can access another account's context. For example, I've written a script that gives you the number of your unread mails in Gmail. But this script will always give the number of unread mails of the account that is the script's owner. You can understand that is a serious problem for me.
I hope you can help me because I don't know if it is possible and how I can do it.
Thanks a lot.