@@ -19,11 +19,38 @@ The following commands require administrator permissions.
1919
2020Configure which roles are assigned during the verification process.
2121
22+ #### Default Roles
23+
24+ Default roles are given to ** all** verified users, regardless of their email domain.
25+
2226| Command | Description |
2327| ---------| -------------|
24- | ` /role verified [role] ` | Set or view the role given to users after successful verification |
28+ | ` /role add <role> ` | Add a role to the default roles list |
29+ | ` /role remove <role> ` | Remove a role from the default roles list |
30+ | ` /role list ` | View all configured default roles |
2531| ` /role unverified [role] ` | Set or view the optional role for unverified members (select current role to disable) |
2632
33+ #### Domain-Specific Roles
34+
35+ Assign different roles based on which email domain the user verifies with. Users receive their domain-specific roles ** plus** any default roles.
36+
37+ | Command | Description |
38+ | ---------| -------------|
39+ | ` /domainrole add <domain> <role> ` | Add a role for a specific email domain |
40+ | ` /domainrole remove <domain> <role> ` | Remove a role from a specific domain |
41+ | ` /domainrole list ` | View all domain-role mappings |
42+ | ` /domainrole clear <domain> ` | Remove all roles for a specific domain |
43+
44+ #### Domain Role Examples
45+
46+ | Setup | Result |
47+ | -------| --------|
48+ | Default: ` @Member ` <br >Domain: ` @*.edu ` → ` @Student ` | User with ` @stanford.edu ` gets: ` @Student ` , ` @Member ` |
49+ | Default: ` @Verified ` <br >Domain: ` @company.com ` → ` @Employee ` , ` @Staff ` | User with ` @company.com ` gets: ` @Employee ` , ` @Staff ` , ` @Verified ` |
50+ | Domain: ` @*.harvard.edu ` → ` @Harvard ` <br >Domain: ` @*.edu ` → ` @Student ` | User with ` @cs.harvard.edu ` gets: ` @Harvard ` , ` @Student ` (all matching patterns) |
51+
52+ > 💡 ** Tip:** When using ` /domainrole add ` , the domain field autocompletes with your configured domains from ` /domain add ` .
53+
2754### 📧 Domain Management
2855
2956Control which email domains are allowed for verification.
@@ -120,3 +147,15 @@ The unverified role can be used to:
120147- Make a verification channel visible only to unverified users
121148- Restrict access to most channels until users verify
122149- Combined with ` /settings auto-unverified ` , automatically restrict new members
150+
151+ ### Role Display in Verification
152+
153+ When domain-specific roles are configured, the verification modal shows users which roles they will receive:
154+
155+ ```
156+ Accepted domains:
157+ 1. @*.edu → Student, Member
158+ 2. @company.com → Employee, Member
159+ ```
160+
161+ This helps users understand what access they'll get before verifying.
0 commit comments