Group reports

20 views
Skip to first unread message

Lorena Lavôr

unread,
May 18, 2023, 3:21:00 PM5/18/23
to Google Apps Script Community
Hey guys, 

I was trying to frind a code to export a report of gourps of 2 domines on google workspace, I start with that: 
var groups = GroupsApp.getGroups();
Logger.log('You are a member of %s Google Groups.', groups.length);


but I'm not member of the all groups, and plus I need to know the members of all groups in this  2 domine. Could you guys help me?

Thanks.

Web Dev

unread,
May 18, 2023, 3:25:12 PM5/18/23
to google-apps-sc...@googlegroups.com
I believe you're not seeing the value of `groups.length` in your Logger. When using Logger make sure to use '+' instead of ',' in concatenating your string like so:
Logger.log('You are a member of %s Google Groups.' + groups.length);

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0ff86eff-1fe1-4840-82d8-127a3129928bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages