Directory API 總覽
Directory API 是 RESTful Admin SDK API 的一部分,可讓您以程式輔助方式,建立及管理 Google Workspace 帳戶擁有的管理員控制資源。部分用途包括:
- 建立及管理使用者,以及新增管理員。
- 建立及管理群組和群組成員。
- 監控已連結至網域的裝置,並針對遺失的裝置採取行動。
- 管理組織架構和機構架構。
- 稽核使用者授予存取權的應用程式,並撤銷未經授權的應用程式。
以下列出 Directory API 中常用的詞彙:
- 客戶
- 擁有 Google Workspace 帳戶的實體,由「客戶」資源代表。
- 網域
- 如果適用,則是與 Google Workspace 帳戶相關聯的 DNS 網域,由 Domain 資源代表。並非所有帳戶都有相關聯的網域。
- 機構單位 (OU)
- Google Workspace 帳戶機構樹狀結構的子單位,用於將使用者分組及排序,以便套用政策和授予授權。機構單位由 OrgUnit 資源表示。
- 權限
- 使用者對 Google Workspace 資源執行動作的能力。主要適用於管理員。權限會以 Privilege 資源表示。
- 角色
- 可指派給使用者或使用者群組的權限集合,由角色資源表示。
- 角色指派
- 記錄指出哪些使用者獲得哪些角色,以及範圍為何。角色指派由 RoleAssignment 資源代表。
- 結構定義
- JSON 物件,定義機構的自訂使用者屬性,由 架構資源代表。
- 使用者
- 可存取 Google Workspace 應用程式和資源的個別使用者帳戶,由 User 資源代表。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-27 (世界標準時間)。
[null,null,["上次更新時間:2025-01-27 (世界標準時間)。"],[[["The Directory API lets you programmatically manage Google Workspace resources like users, groups, and devices."],["You can use the Directory API to manage your organization's structure, control user access, and audit application permissions."],["Common Directory API terms include Customer, Domain, Organizational Unit, Privilege, Role, Role Assignment, Schema, and User, each representing different aspects of your Google Workspace environment."],["To get started, refer to the Workspace developer documentation and the JavaScript quickstart for a hands-on example."]]],["The Directory API, part of the RESTful Admin SDK API, manages Google Workspace resources. Key actions include creating/managing users, admins, groups, and group memberships. It also involves monitoring devices, managing organizational structures, and auditing/revoking app access. The API uses terms like Customer, Domain, Organizational Unit (OU), Privilege, Role, Role Assignment, Schema, and User to define and structure these actions and entities within a Google Workspace account.\n"]]