December 16, 2021
Making dynamic groups more powerful with custom user attributes and OrgUnit queries
What’s changing
- First, dynamic groups can now be defined by querying custom user attributes. This functionality is available as an open beta (no sign up required).
- Second, dynamic groups can also be defined based on users’ membership in Organizational Units (OUs). This feature is now generally available.
Who’s impacted
Why you’d use it
- Create a dynamic group for all users of a subsidiary (an organizational unit) based in a particular city or state.
- Create a dynamic group with all users with a custom attribute of a “job_skill” or “speciality”.
Getting started
- Admins: To take advantage of this new dynamic group functionality, you will need to have already defined custom user fields or organizational units.
- Once this is in place you can test membership queries and then create / update dynamic groups to take advantage of them.
- To query a customer attribute “EmployeeNumber” (based on this sample schema):
user.custom_schemas.employmentData.EmployeeNumber == '123456789'
-
To query all direct members of an organizational unit:
user.org_unit_id==orgUnitId('03ph8a2z1enx4lx')
-
To query all direct and indirect members of an organizational unit:
user.org_units.exists(org_unit, org_unit.org_unit_id==orgUnitId('03ph8a2z1khexns'))
- End users: Not available to end users.
Rollout pace
- Custom user attribute queries are available now for all users in open beta (no sign up required)
- Organizational unit based dynamic group queries are now generally available for all users.
Availability
- Available to Google Workspace Enterprise Standard, Enterprise Plus, and Education Plus customers
- Not available to Google Workspace Essentials, Business Starter, Business Standard, Business Plus, Enterprise Essentials, Education Fundamentals, Frontline, and Nonprofits, as well as G Suite Basic and Business customers