動的グループクエリの有効なユーザー フィールド
このページでは、メンバークエリでサポートされているフィールドと、使用できる 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 | デスク | |
| 組織 | 0 | 不明 | 
| 1 | 勤務先 | |
| 2 | 学校 | |
| 3 | domain-only | |
| リレーション | 12 | マネージャー | 
| メール | 0 | 不明 | 
| 1 | カスタム | |
| 2 | 自宅 | |
| 3 | 勤務先 | |
| 4 | その他 | |
| 外部 ID | 0 | 不明 | 
| 1 | カスタム | |
| 2 | アカウント | |
| 3 | 顧客 | |
| 4 | ネットワーク | |
| 5 | 組織 | |
| 6 | login_id | |
| 性別 | 0 | 不明 | 
| 1 | 男性 | |
| 2 | 女性 | |
| 3 | その他 | |
| IMS 標準プロトコル | 0 | デフォルト | 
| 1 | custom protocol | |
| 2 | aim | |
| 3 | msn | |
| 4 | yahoo | |
| 5 | skype | |
| 6 | ||
| 7 | gtalk | |
| 8 | icq | |
| 9 | jabber | |
| 10 | net meeting | |
| IMS の種類 | 0 | 不明 | 
| 1 | カスタム | |
| 2 | 自宅 | |
| 3 | 勤務先 | |
| 4 | その他 | |
| キーワード | 0 | 不明 | 
| 1 | カスタム | |
| 2 | ミッション | |
| 3 | 職業 | |
| 4 | outlook | |
| スマートフォン | 0 | 不明 | 
| 1 | カスタム | |
| 2 | 自宅 | |
| 3 | 勤務先 | |
| 4 | その他 | |
| 5 | FAX(自宅) | |
| 6 | FAX(勤務先) | |
| 7 | モバイル | |
| 8 | ポケベル | |
| 9 | FAX(その他) | |
| 10 | 会社代表番号 | |
| 11 | アシスタント | |
| 12 | 車 | |
| 13 | ラジオ | |
| 14 | isdn | |
| 15 | callback | |
| 16 | テレックス | |
| 17 | TTY/TDD | |
| 18 | 携帯電話(勤務先) | |
| 19 | ポケベル(勤務先) | |
| 20 | メイン | |
| 21 | grand central | |
| 22 | enterprise voice | |
| 停止理由 | 1 | admin | 
| 2 | under 13 | |
| 3 | ウェブ ログインが必要 | |
| 4 | abuse | |
| 5 | 不正行為 - 管理者が回復可能 | |
| ウェブサイト | 0 | 不明 | 
| 1 | app install page | |
| 2 | ブログ | |
| 3 | カスタム | |
| 4 | ftp | |
| 5 | 自宅 | |
| 6 | トップページ | |
| 7 | その他 | |
| 8 | プロフィール | |
| 9 | 予約 | |
| 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として取得できます。