0
votes

After a user logs in to our private Google Sites, I want to conditionally show or hide my Google Apps Script gadget on the landing page to the user. To put another way, if the user has seen it I don't want to show it to them again until it's changed.

I am using Google Apps Script, as opposed to Google Sites Gadget, because I need the logged in user's email for identity purposes.

I have seen similar questions like Google Apps Scripts have static height and adjusting height of Google Apps Script but none has a solution I could use.

1
Alternatively, does anyone know a way to get the logged in user's email or openID in a gadget without requiring them to authorize it? It's just annoying for the user to have to authorize you to identify them after they've just logged in.Duoc Tran

1 Answers

0
votes

both your question and comment are not possible. a gas cannot be hidden or height changed. your only option is to show a blank gadget. also a sites gadget cannot get the user's email unless you do the oauth dance which is pretty much useless: as soon as you do any changes to the gadget, like changing dimensions, the gadget url will change and that forces the oauth dance again.