Valid user attributes for dynamic groups

This page outlines supported user attributes and features of CEL that can be used in a membership query.

Supported user attributes

The following attributes from the Admin SDK's User resource can be used in membership queries:

Attribute Sub-attribute
addresses country
country_code
custom_type
extended_address
locality
po_box
postal_code
region
street_address
type
locations area
building_id
custom_type
desk_code
floor_name
floor_section
type
organizations cost_center
custom_type
department
description
domain
location
name
symbol
title
type
relations custom_type
type
value
emails address
custom_type
type
external_ids custom_type
type
value
gender address_me_as
custom_gender
type
ims custom_protocol
custom_type
standard_protocol
type
value
keywords custom_type
type
value
languages language_code
name family_name
given_name
value
phones custom_type
type
value
websites custom_type
type
value

Type fields

The type fields from the previous table are matched using enum values instead of their string representations. The following list documents each type's string representation to the corresponding enum value.

Attribute Enum value String representation
Address 0 unknown
1 custom
2 home
3 work
4 other
Locations 0 default
1 custom
2 desk
Organizations 0 unknown
1 work
2 school
3 domain-only
Relations 12 manager
Emails 0 unknown
1 custom
2 home
3 work
4 other
External IDs 0 unknown
1 custom
2 account
3 customer
4 network
5 organization
6 login_id
Gender 0 unknown
1 male
2 female
3 other
IMS standard protocol 0 default
1 custom protocol
2 aim
3 msn
4 yahoo
5 skype
6 qq
7 gtalk
8 icq
9 jabber
10 net meeting
IMS type 0 unknown
1 custom
2 home
3 work
4 other
Keywords 0 unknown
1 custom
2 mission
3 occupation
4 outlook
Phones 0 unknown
1 custom
2 home
3 work
4 other
5 home fax
6 work fax
7 mobile
8 pager
9 other fax
10 company main
11 assistant
12 car
13 radio
14 isdn
15 callback
16 telex
17 tty tdd
18 work mobile
19 work pager
20 main
21 grand central
22 enterprise voice
Websites 0 unknown
1 app install page
2 blog
3 custom
4 ftp
5 home
6 home page
7 other
8 profile
9 reservations
10 resume
11 work