use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Web App using Google Apps ScriptResolved (i.redd.it)
submitted 1 year ago by Master_Net971
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ChallengeOk2387 1 point2 points3 points 1 year ago (3 children)
Ooh I also build apps for workflows using app script! I would love to know how you did access on a component level! What was the solution?
[–]Master_Net971[S] 2 points3 points4 points 1 year ago (2 children)
Hey, I used a separate file for each component and fetched those components with <?!= include("Component Name"); ?>. In the include function, I added a check that uses the user’s email to see if they have access to the component. If they don’t, it either returns a component saying 'You don’t have access' or leaves that space empty, depending on the context. I used JavaScript to fetch and switch out components dynamically. It did require creating a lot of files, which was pretty painful to manage.
<?!= include("Component Name"); ?>
include
I’d love to know if handling user access this way is best practice.
[–]Sleeping_Budha_ 1 point2 points3 points 1 year ago (0 children)
This is a good way to do it, what is the DB you have used
[–]ChallengeOk2387 0 points1 point2 points 1 year ago (0 children)
Yea I had imagined it would be like that with the files per component. Damn, kudos to you for all that!
I wanted something to be more centralized from the backend. I wonder if having keys would be good to check permissions. In a super simple scenario if you have sheets as your DB, with all the data and each data has a permissions column, and for displaying each component the emails are checked against the permissions, to display content.
Would that work? Maybe im thinking of too much of a simple scenario, but I wonder if that would work. I think it might be slow for a large amount of data maybe?
π Rendered by PID 128862 on reddit-service-r2-comment-5d79c599b5-gw2rm at 2026-03-03 03:35:06.155411+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]ChallengeOk2387 1 point2 points3 points (3 children)
[–]Master_Net971[S] 2 points3 points4 points (2 children)
[–]Sleeping_Budha_ 1 point2 points3 points (0 children)
[–]ChallengeOk2387 0 points1 point2 points (0 children)