---
id: sm-gws-licensing
name: "gws-licensing"
url: https://skills.yangsir.net/skill/sm-gws-licensing
author: googleworkspace
domain: hr
tags: ["google-workspace-licensing", "software-licensing", "cloud-billing", "subscription-management", "it-procurement"]
install_count: 561
rating: 4.20 (20 reviews)
github: https://github.com/googleworkspace/cli
---

# gws-licensing

> 提供Google Workspace许可管理功能，支持对许可资源进行操作，遵循共享认证和安全规则。

**Stats**: 561 installs · 4.2/5 (20 reviews)

## Before / After 对比

### 简化GWS许可证管理

## Readme

# gws-licensing

# licensing (v1)

**PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

```
gws licensing <resource> <method> [flags]

```

## API Resources

### licenseAssignments

- `delete` — Revoke a license.

- `get` — Get a specific user's license by product SKU.

- `insert` — Assign a license.

- `listForProduct` — List all users assigned licenses for a specific product SKU.

- `listForProductAndSku` — List all users assigned licenses for a specific product SKU.

- `patch` — Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.

- `update` — Reassign a user's product SKU with a different SKU in the same product.

## Discovering Commands

Before calling any API method, inspect it:

```
# Browse resources and methods
gws licensing --help

# Inspect a method's required params, types, and defaults
gws schema licensing.<resource>.<method>

```

Use `gws schema` output to build your `--params` and `--json` flags.
Weekly Installs552Repository[googleworkspace/cli](https://github.com/googleworkspace/cli)GitHub Stars21.1KFirst Seen14 days agoSecurity Audits[Gen Agent Trust HubPass](/googleworkspace/cli/gws-licensing/security/agent-trust-hub)[SocketPass](/googleworkspace/cli/gws-licensing/security/socket)[SnykPass](/googleworkspace/cli/gws-licensing/security/snyk)Installed oncodex537opencode537gemini-cli535cursor535github-copilot535kimi-cli534

---
*Source: https://skills.yangsir.net/skill/sm-gws-licensing*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-gws-licensing/markdown*