Loading...
Loading...
Batch Account Authorization Workflow: Orchestrate account list + staff list + API calls to complete batch authorization of stores to employees. Suitable for batch assigning store permissions when new employees join.
npx skill4agent add ziniao-open/skills ziniao-workflow-batch-account../ziniao-shared/SKILL.mdziniao-cli config initstaff list ──► Find target employee ID
account list ──► Find target store ID list
│
├──► For each store:
│ api /superbrowser/rest/v1/erp/store/auth/add { storeIdList, staffId }
│
└──► Summarize authorization results# Search by name
ziniao-cli staff list --name "Zhang San" --format table
# Record userId# List all stores
ziniao-cli account list --format table --page-all
# Or search by name
ziniao-cli account list --name "US" --format tableziniao-cli api /superbrowser/rest/v1/erp/store/auth/add \
--data '{"storeIdList":["<storeId>"],"staffId":"<staffId>"}'# View stores authorized to this employee
ziniao-cli api /superbrowser/rest/v1/erp/user/stores \
--data '{"userId":"<userId>","page":1,"limit":10}'