Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent workflows

Audit and provision a team API workspace

Use the organization Admin API to invite members, create a workspace, and audit keys and a CI service account.

Goal

Use the organization Admin API to invite members, create a workspace, and audit keys and a CI service account.

Steps

  1. Create a test workspace with client.beta.organization.workspaces.create and record its ID. [source-anthropic-audit-and-provision-team-workspace]
  2. Invite approved users, assign workspace roles, and audit existing API keys. [source-anthropic-audit-and-provision-team-workspace]
  3. Review changes and CI permissions before real use; stop on any error. [source-anthropic-audit-and-provision-team-workspace]

How to verify

In a test organization, verify workspace ID, invitation status, roles, and CI identity; reconcile each action ID with the audit record.

Troubleshooting

If an invite fails, read current membership before retrying one invite; stop further provisioning when roles or audit records do not match.

Permissions

Prerequisites

Permissions

Limitations

Run the source on isolated test data, then check outputs and dependency versions before adapting it.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/misc/admin_api.ipynb

Repository
anthropics/anthropic-cookbook
File path
misc/admin_api.ipynb
Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Turn ecommerce campaign materials into a reviewable weekly brief

Related resources