動的グループクエリの有効なユーザー フィールド

このページでは、メンバークエリでサポートされているフィールドと、使用できる CEL の機能について説明します。

ユーザー フィールド

メンバーシップ クエリでは、Admin SDK の User リソースの次のフィールドを使用できます。

項目 サブフィールド
addresses country
country_code
custom_type
extended_address
locality
po_box
postal_code
primary
region
street_address
type
archived ブール値
change_password_at_next_login ブール値
is_2sv_enforced ブール値
is_enrolled_in_2sv ブール値
is_mailbox_setup ブール値
locations area
building_id
custom_type
desk_code
floor_name
floor_section
type
organizations cost_center
custom_type
department
description
domain
location
name
primary
symbol
title
type
relations custom_type
type
value
emails address
custom_type
primary
type
external_ids custom_type
type
value
gender address_me_as
custom_gender
type
ims custom_protocol
custom_type
standard_protocol
primary
type
value
keywords custom_type
type
value
languages language_code
name family_name
given_name
value
phones custom_type
primary
type
value
suspended ブール値
suspension_reason custom_type
type
value
websites custom_type
primary
type
value

型属性

前の表の type 属性は、文字列表現ではなく列挙値を使用して照合されます。次のリストに、各型の文字列表現と対応する列挙値が記載されています。

属性 列挙値 文字列表現
アドレス 0 不明
1 カスタム
2 自宅
3 仕事
4 その他
ロケーション 0 デフォルト
1 カスタム
2 desk
組織 0 不明
1 仕事
2 school
3 domain-only
Relations 12 管理者
メール 0 不明
1 カスタム
2 自宅
3 仕事
4 その他
外部 ID 0 不明
1 カスタム
2 アカウント
3 顧客
4 network
5 組織
6 login_id
性別 0 不明
1 男性
2 女性
3 その他
IMS 標準プロトコル 0 デフォルト
1 custom protocol
2 aim
3 msn
4 yahoo
5 skype
6 qq
7 gトーク
8 icq
9 jabber
10 net meeting
IMS のタイプ 0 不明
1 カスタム
2 自宅
3 仕事
4 その他
キーワード 0 不明
1 カスタム
2 mission
3 occupation
4 outlook
Phones 0 不明
1 カスタム
2 自宅
3 仕事
4 その他
5 home fax
6 work fax
7 モバイル
8 ページャー
9 other fax
10 company main
11 アシスタント
12
13 ラジオ
14 isdn
15 callback
16 telex
17 tty tdd
18 work mobile
19 work pager
20 メイン
21 grand central
22 enterprise voice
停止理由 1 管理者
2 under 13
3 ウェブ ログインが必要
4 abuse
5 不正行為 - 管理者が回復可能
Websites 0 不明
1 app install page
2 ブログ
3 カスタム
4 ftp
5 自宅
6 home page
7 その他
8 プロフィール
9 reservations
10 resume
11 仕事

組織部門のフィールド

orgUnitId フィールドを使用してメンバーシップのクエリを実行して、その組織部門に属するすべてのユーザーを直接的または間接的に含めることもできます。orgUnitId 値の取得の詳細については、Admin SDK リファレンス ドキュメントをご覧ください。

サンプルクエリ

  • 特定の組織部門に直接的に属するすべてのユーザー:

    user.org_unit_id==orgUnitId('03ph8a2z1enx4lx')
    
  • 特定の組織部門に直接的または間接的に属するすべてのユーザー:

    user.org_units.exists(org_unit, org_unit.org_unit_id==orgUnitId('03ph8a2z1khexns'))
    

その他のクエリタイプ

  • 特定のユーザーが管理しているすべてのユーザー:

    user.managers.exists(manager, manager.user_id == userId('MANAGER_ID'))
    

    MANAGER_ID は、マネージャーの一意のユーザー ID に置き換えます。この ID は、AdminSDK Directory API を使用して、マネージャーのメールアドレスを userKey として取得できます。