概念
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用 API 时,了解客户、用户、SKU 和许可的概念关系非常重要。
现有 Google Workspace 客户可以在管理员控制台中创建用户。默认情况下,系统会为这些用户自动分配使用 Google Workspace 的许可。
购买 Google Workspace 后,客户还可以购买其他许可,例如 Google 云端硬盘存储空间许可。Google 云端硬盘存储空间有 8 个层级,可用存储空间为 20 GB 到 16 TB。客户必须先激活 Google 云端硬盘存储空间订阅,然后使用许可管理器界面为上述任一层级分配存储空间许可。客户还可以独立于 Google Workspace 购买 Google 地图协调中心,然后使用同一界面分配 Google 地图协调中心许可。
这些可获授权实体称为 SKU。通过此 API,网域管理员可以通过编程方式将 SKU 的许可分配给特定用户,并与许可管理器界面配合使用。您还可以为特定用户取消分配和重新分配许可,分配方式与在界面中操作非常相似。该 API 允许为 Google Workspace 转销商管理员及其客户分配相同的程序化许可。
如果用户为上述任何产品选择弹性方案,则分配、取消分配和重新分配此 API 的许可会产生金钱方面的影响,并会导致系统向您的客户结算帐号收取费用。例如,如果您使用的是 Google 云端硬盘存储空间的弹性方案,向用户分配 20GB 的许可后,系统会向您的帐号收取相应费用(从分配完成后按比例收费)。如果您采用的是包年方案,那么您应该已经承诺为一定数量的许可支付费用,而且您只能向具体用户分配数量相同的许可。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-04。
[null,null,["最后更新时间 (UTC):2025-08-04。"],[],[],null,["# Concepts\n\nWhen working with the API, it is important to understand the conceptual relationships of customers, users, SKUs, and licenses.\n\nAn existing Google Workspace customer can create users in the administrator control panel. By default, these users are auto-assigned a license to use Google Workspace.\n\nAfter purchasing Google Workspace, the customer can also buy other licenses, for example Google Drive storage licenses. Google Drive storage has 8 tiers of available storage licenses, ranging from 20 GB to 16 TB. The customer must first [activate](https://support.google.com/a/bin/answer.py?answer=1726914&topic=1727149&ctx=topic) a Google Drive storage subscription, and then can assign storage licenses for any of these tiers using the [License Manager user interface](https://support.google.com/a/bin/answer.py?answer=1727173&topic=1727149&ctx=topic). The customer can also buy Google Maps Coordinate independent of Google Workspace, and then assign Google Maps Coordinate licenses using the same user interface.\n\nThese licensable entities---Google Maps Coordinate, Google Drive storage 20 GB, Google Drive storage 50 GB...Google Drive storage 16 TB---are called SKUs. This API allows a domain administrator to programmatically assign licenses of SKUs to a particular user and can be used along with the License Manager user interface. You can also unassign, and re-assign licenses for a particular user, much like in the user interface. The API allows the same programmatic license assignment for Google Workspace reseller administrators and their customers.\n\nFor users on a flexible plan for any of these products, assigning, un-assigning and re-assigning licenses using this API will have monetary impact, and will result in charges to your customer billing account. For instance, if you are on a flexible plan for Google Drive storage, assigning a user a 20GB license will result in charges being posted to your account, prorated from the time the assignment is done. If you are on an annual plan, you would already have committed to paying for a certain number of licenses upfront, and you can only assign as many licenses to individual users as your commitment."]]