Skip to content

Commit b174a80

Browse files
yamitzkyclaude
andauthored
feat: add SCIM v2 API support (scim-users, scim-groups) (#7)
* docs: add SCIM API support design spec Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add SCIM API implementation plan Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add SCIM types and ScimClient Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: remove as casts from ScimClient, add missing tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: add scim-users list and get commands * feat: add scim-users create, update, deactivate commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: add scim-groups list and get commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: add scim-groups create, update, delete commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: wire up all SCIM commands in index.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs: add SCIM commands to README, README_ja, CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: add SCIM skill recipes for scim-users and scim-groups Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent feee07f commit b174a80

33 files changed

Lines changed: 3543 additions & 5 deletions

CLAUDE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ bun run lint # TypeScript 型チェック(tsc --noEmit)
3232
src/
3333
├── index.ts # CLI パーサー定義 + コマンドルーティング(switch文)
3434
├── client.ts # WebClient ファクトリ
35+
├── scim-client.ts # ScimClient ファクトリ(SCIM v2 API 用)
36+
├── scim-types.ts # SCIM 型定義
3537
├── config.ts # プロファイル・トークン管理
3638
├── output.ts # 出力フォーマッタ(JSON / table / plain)
3739
└── commands/ # コマンド実装(グループ/サブコマンドごとにファイル分割)
@@ -42,7 +44,9 @@ src/
4244
├── apps/
4345
├── invite-requests/
4446
├── workflows/
45-
└── functions/
47+
├── functions/
48+
├── scim-users/
49+
└── scim-groups/
4650
tests/ # テスト(commands/ 以下と同構造)
4751
skills/ # Agent Skill 定義
4852
```

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CLI & Agent Skill for managing Slack Enterprise Grid / Business+ workspaces via
66

77
## Features
88

9-
- **73+ admin commands** covering 8 API groups: teams, users, conversations, apps, invite-requests, workflows, functions, and token management
9+
- **83+ admin commands** covering 10 API groups: teams, users, conversations, apps, invite-requests, workflows, functions, scim-users, scim-groups, and token management
1010
- **Agent Skill** — ships with a Claude Code / Codex skill so AI agents can drive Slack admin tasks using the CLI as a tool
1111
- **Bulk operations** — archive, delete, or move hundreds of channels at once with `conversations bulk-*`
1212
- **Output formats** — table (human), JSON (programmatic), TSV (pipe-friendly)
@@ -182,6 +182,26 @@ sladm teams list --plain # TSV (for scripting)
182182
| `conversations restrict-access remove-group` | Remove access group |
183183
| `conversations ekm list-original-connected-channel-info` | EKM channel info |
184184

185+
### SCIM Users
186+
187+
| Command | Description |
188+
|---------|-------------|
189+
| `scim-users list` | List users (SCIM) |
190+
| `scim-users get` | Get user details (SCIM) |
191+
| `scim-users create` | Create user (SCIM) |
192+
| `scim-users update` | Update user attributes (SCIM) |
193+
| `scim-users deactivate` | Deactivate user (SCIM) |
194+
195+
### SCIM Groups
196+
197+
| Command | Description |
198+
|---------|-------------|
199+
| `scim-groups list` | List groups (SCIM) |
200+
| `scim-groups get` | Get group details (SCIM) |
201+
| `scim-groups create` | Create group (SCIM) |
202+
| `scim-groups update` | Update group (SCIM) |
203+
| `scim-groups delete` | Delete group (SCIM) |
204+
185205
### Apps
186206

187207
| Command | Description |
@@ -242,6 +262,7 @@ sladm teams list --plain # TSV (for scripting)
242262
| `admin.invites:write` | Approve/deny invite requests |
243263
| `admin.workflows:read` | List workflows and functions |
244264
| `admin.workflows:write` | Manage workflows, set permissions |
265+
| `admin` | SCIM user and group management |
245266

246267
## Development
247268

README_ja.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Slack Enterprise Grid / Business+ ワークスペースの `admin.*` API を操
66

77
## Features
88

9-
- **73以上の管理コマンド** — teams, users, conversations, apps, invite-requests, workflows, functions, token の8グループをカバー
9+
- **83以上の管理コマンド** — teams, users, conversations, apps, invite-requests, workflows, functions, scim-users, scim-groups, token の10グループをカバー
1010
- **Agent Skill** — Claude Code / Codex のスキルとして動作し、AI エージェントが CLI 経由で Slack 管理操作を実行可能
1111
- **一括操作**`conversations bulk-*` で数百チャンネルのアーカイブ・削除・移動を一発実行
1212
- **出力形式** — テーブル(人間向け)、JSON(プログラム連携)、TSV(パイプ向け)
@@ -182,6 +182,26 @@ sladm teams list --plain # TSV 形式(スクリプト連携向け)
182182
| `conversations restrict-access remove-group` | アクセスグループ削除 |
183183
| `conversations ekm list-original-connected-channel-info` | EKM チャンネル情報 |
184184

185+
### SCIM Users
186+
187+
| コマンド | 説明 |
188+
|---------|------|
189+
| `scim-users list` | ユーザー一覧(SCIM) |
190+
| `scim-users get` | ユーザー詳細取得(SCIM) |
191+
| `scim-users create` | ユーザー作成(SCIM) |
192+
| `scim-users update` | ユーザー属性更新(SCIM) |
193+
| `scim-users deactivate` | ユーザー無効化(SCIM) |
194+
195+
### SCIM Groups
196+
197+
| コマンド | 説明 |
198+
|---------|------|
199+
| `scim-groups list` | グループ一覧(SCIM) |
200+
| `scim-groups get` | グループ詳細取得(SCIM) |
201+
| `scim-groups create` | グループ作成(SCIM) |
202+
| `scim-groups update` | グループ更新(SCIM) |
203+
| `scim-groups delete` | グループ削除(SCIM) |
204+
185205
### Apps
186206

187207
| コマンド | 説明 |
@@ -242,6 +262,7 @@ sladm teams list --plain # TSV 形式(スクリプト連携向け)
242262
| `admin.invites:write` | 招待リクエスト承認・拒否 |
243263
| `admin.workflows:read` | ワークフロー・関数一覧 |
244264
| `admin.workflows:write` | ワークフロー管理・権限設定 |
265+
| `admin` | SCIM ユーザー・グループ管理 |
245266

246267
## Development
247268

0 commit comments

Comments
 (0)