Creating Dynamic Groups using custom quary

379 views
Skip to first unread message

Pirooz Jolani

unread,
Feb 15, 2022, 5:47:37 PM2/15/22
to GAM for Google Workspace
Hi all,
trying to create about 300 Dynamic Groups based on multi-value custom attributes created for users.  I am able to manually create this but was wondering if I can create it using GAM based on:
user.custom_schemas.Courses.CourseID2.exists(fld, fld == "12345-YU")

Any help would be appreciated.

Thanks
Pirooz

Ross Scroggs

unread,
Feb 16, 2022, 6:12:09 PM2/16/22
to google-ap...@googlegroups.com
Pirooz,

Show: gam info schema Courses

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/af527713-d308-4e64-8391-275a38c6e181n%40googlegroups.com.


--

Ross Scroggs

unread,
Feb 16, 2022, 6:31:50 PM2/16/22
to google-ap...@googlegroups.com
Pirooz,

<CIGroupAttribute> ::=

        (description <String>)|

        (name <String>)


gam create cigroup <EmailAddress> <CIGroupAttribute>*

        [makeowner] [alias|aliases <AliasList>] [dynamic <QueryDynamicGroup>]


gam create cigroup testdy...@domain.com dynamic "user.custom_schemas.Courses.CourseID2.exists(fld, fld == '12345-YU')"


With a two-column CSV file CourseDynamicGroups.csv

group,courseid

ma...@domain.com,Math

sci...@domain.com,Science

a...@domain.com,Art


gam csv CourseDynamicGroups.csv gam create cigroup "~group" dynamic "user.custom_schemas.Courses.CourseID2.exists(fld, fld == '~~courseid~~')"


The default Google limit is 100 dynamic groups, to get to 300 dynamic groups you'llhave to contact Google.


Ross


On Tue, Feb 15, 2022 at 2:47 PM Pirooz Jolani <pirooz...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/af527713-d308-4e64-8391-275a38c6e181n%40googlegroups.com.


--

Pirooz Jolani

unread,
Feb 17, 2022, 6:00:24 PM2/17/22
to google-ap...@googlegroups.com
Thank you Ross.  This was very helpful and I appreciate your help.

Thanks
Pirooz

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/aP8suJM0WVI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_66mcb%2B38YyJ-wBGW_XBEZAyxRXKyWZCt8fOPHpMSiVQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages