/mailprotector:users-and-groupsfrom mailprotector
Manages Mailprotector user groups, users, services, aliases, and directory syncs (LDAP/AD, Entra, Google).
Ships in mailprotector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Users live in user groups; user groups live under domains and are the unit of service provisioning — which products (CloudFilter, Bracket, SafeSend, XtraMail, SecureStore, hosting) a set of users gets. Manual user CRUD and directory sync are alternative population strategies for the same groups.
| Concept | Detail |
|---|---|
| User group | {id, name, domain, user_count} — created under a domain with just name |
| Services | Per user group; split into one hosting option plus any number of addons |
user_type | 1 User, 2 Alias, 3 Mailing List, 11 Unlicensed User |
| Primary address | Generated as <name>@<domain>; one extra address per domain alias |
| User sync | Domain-level directory import into a destination_user_group |
| Sync source types | UserSync::LdapSource (API-creatable), UserSync::GoogleSource and UserSync::MicrosoftGraphSource (Entra/O365 — console-only) |
Create: POST /domains/{domain_id}/user_groups {"name": "..."};
list with mailprotector_user_groups_list.
Read services: GET /user_groups/{user_group_id}/services → array of
{id, service_type, user_group, domain}.
Update services: PUT /user_groups/{user_group_id}/services with
{"service_types": {"hosting": "other", "addons": ["bracket", "securestore"]}}
One hosting value, any number of addons. Any currently active
service not present in the body is deactivated — always GET the
current services, merge, then PUT the full desired set.
Rename: PUT /user_groups/{id}; delete: DELETE /user_groups/{id} —
deletes every user in the group. Move users to another group
first to preserve them.
POST /user_groups/{user_group_id}/users with
{"name": "username", "password": "...", "first_name": "...", "last_name": "...", "user_type_id": 1, "aliases": ["alias1"]}.
Responds 201 with an array containing the created user.POST /user_groups/{user_group_id}/users/create_many with
{"users": [ {...}, {...} ]} — same per-user shape.<name>@<domain> plus one address per domain alias.mailprotector_users_list (filterable, e.g.
?first_name=Bob), mailprotector_users_get, and
mailprotector_users_find_by_address
(POST /users/find_by_address {"address": "[email protected]"}) —
searching an alias address returns the root user.PUT /users/{user_id} — first_name, last_name, phone,
user_type_id.POST /users/{user_id}/reset_password
{"password": "..."} — sets it to the supplied value (high-impact;
confirm with the operator).DELETE /users/{user_id} — irreversible.GET /users/{user_id}/aliases;
POST /users/{user_id}/aliases with the nested body
{"alias": {"name": "alias-username"}} (unlike the flat aliases
array on user create). The parent must be user_type "User" —
mailing lists and equipment accounts cannot take aliases. An alias
address is created for the domain and each domain alias.List: GET /domains/{domain_id}/user_syncs; single:
GET /user_syncs/{user_sync_id}.
Create (LDAP/AD only):
POST /domains/{domain_id}/user_syncs with
destination_user_group_id, source_type: "UserSync::LdapSource",
enabled: "true", and
source: {host, port, use_ssl, username, password, search_base}.
New syncs are disabled by default unless enabled is passed.
Google Workspace and Microsoft Graph (Entra ID / Office 365) sources
must be provisioned in the web console — but once they exist, their
schedule and filters are managed via the API like any other sync.
Schedule (per domain, not per sync):
GET/PUT /domains/{domain_id}/user_sync_schedule with
{"interval": 30, "enabled": true} — interval is minutes between
runs; the response carries last_run_at/next_run_at.
Filters: GET/POST /user_syncs/{user_sync_id}/filters with
{"field": "Department", "value": "Accounting", "filter_group": "all", "comparison_type_id": 1}; delete via
DELETE /user_sync_filters/{id}. filter_group is all (AND) or
any (OR). Comparison types:
| id | Comparison | id | Comparison |
|---|---|---|---|
| 1 | Equals | 5 | Contains |
| 2 | Does not equal | 6 | Does not contain |
| 3 | Greater than | 7 | Matches |
| 4 | Less than | 8 | Does not match |
alive: false on a sync means the source stopped
answering; check host/credentials before touching filters.enabled on sync create is the string "true" in the documented
body; the update accepts a boolean. Send what the endpoint shows.[0] for the created record.What SKILL.md sets; muted values are Claude Code's defaults
When managing Mailprotector user groups, users, aliases, services, or directory syncs. Use when: mailprotector user, user group, create users, find by address, user alias, reset password, user sync, AD sync, Entra sync, LDAP sync, mailprotector services, provision bracket.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin mailprotector5 skills in this plugin
/allow-block-rulesMailprotector Allow/Block RulesSender allow/block rules at all five scopes: downward inheritance (reseller rules apply to everything beneath), the listing that returns only directly-attached rules, create with `rule_type: allow|block` and address-or-domain values, and the flat delete endpoint.
/api-patternsMailprotector API PatternsMailprotector MCP fundamentals: gateway header authentication (`X-Mailprotector-Api-Key` / `X-Mailprotector-Reseller-Id`) and its translation to the upstream Bearer token, the Provider → Reseller → Customer → Domain → User Group → User entity hierarchy, the router-pattern tool surface with `mailprotector_execute_tool` for the long tail, scope/scope_id consolidation, field-based list filtering, `page` pagination (max 50 on messages), and error handling.
/customers-and-domainsMailprotector Customers & DomainsCustomer lifecycle (create/edit/delete under the reseller), domain creation with the Pending → Active verification flow and verification_token, domain aliases, moving domains between customers, address discovery, and mail routing via email destinations and email sources.
Other plugins' skills for the same job