[GH-ISSUE #6022] [Feature]: Adding the ability to apply additional links and subscriptions to new customers #4169

Open
opened 2026-10-31 20:37:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @bl00dychains on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6022

I don't consider this a problem, but it's frustrating to manually add an external subscription or link for each user, especially if there are more than 100 users.

Describe the solution you'd like

Please add a separate function for automatically adding external links and subscriptions to new customers

Alternatives you've considered

No response

Concrete use case

For example, a separate button will appear on the "Customers" tab, or a button will be added when you click the "Advanced" button, which allows you to customize the overall behavior of all existing and future subscriptions.

Mockups, screenshots, or examples

Image Image

Which parts of the panel would this affect?

Frontend (UI / panel pages), Subscription (share links / Clash / JSON)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @bl00dychains on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6022 ### Is your feature request related to a problem? I don't consider this a problem, but it's frustrating to manually add an external subscription or link for each user, especially if there are more than 100 users. ### Describe the solution you'd like Please add a separate function for automatically adding external links and subscriptions to new customers ### Alternatives you've considered _No response_ ### Concrete use case For example, a separate button will appear on the "Customers" tab, or a button will be added when you click the "Advanced" button, which allows you to customize the overall behavior of all existing and future subscriptions. ### Mockups, screenshots, or examples <img width="473" height="286" alt="Image" src="https://github.com/user-attachments/assets/25f01a54-a212-484f-8734-cacb862a5400" /> <img width="1092" height="145" alt="Image" src="https://github.com/user-attachments/assets/2dbf084e-ab78-477d-9aa3-15042306f579" /> ### Which parts of the panel would this affect? Frontend (UI / panel pages), Subscription (share links / Clash / JSON) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 17, 2026):

This isn't currently possible: external links and external subscriptions can only be added one client at a time, and there is no bulk-assign action and no default/template that gets applied to newly created clients.

Confirmed in source:

  • They're added per client from the Links tab of the client edit form (frontend/src/pages/clients/ClientFormModal.tsx), saved through POST /panel/api/clients/{email}/externalLinks (internal/web/controller/client.go).
  • ClientService.SetExternalLinksByEmail / SetExternalLinksForRecord (internal/web/service/client_external_link.go) always replace one client's entire link set (table client_external_links, model ClientExternalLink in internal/database/model/model.go) — there's no multi-client variant.
  • The panel does have a multi-client bulk-edit path (ClientBulkAdjustModal.tsx backed by ClientService.BulkAdjust, internal/web/service/client_bulk.go), but it only covers expiry days, traffic, and flow — not links/subscriptions.
  • BulkCreate / ImportClients (same file) create clients strictly from the payload given to them; nothing merges in a stored "default" set of links for new clients.
  • Per-client external links/remote subscriptions themselves shipped in v3.4.0 (commit dcb923b4), so this is a genuine gap in an otherwise recent feature, not a regression.

Two open requests overlap with parts of this and are worth reading together:

  • #5533 — a centralized "Links" entity (create once, manage centrally) with manual bulk-assignment to selected existing clients, and update propagation when a link is edited later.
  • #5757 — a save/load "default" template at client-creation time, but scoped to days/GB/group/inbounds/flow, not links.

Neither one actually covers what you're asking for — an automatic default applied to every new customer going forward, plus a way to push it to existing ones — so this is being kept open as its own request rather than closed as a duplicate. A maintainer may want to design the underlying data model (a global link entity plus an assignment/default mechanism) once, so it can serve this issue and #5533 together.

@MHSanaei for triage/prioritization.

This comment was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:5007529600 --> @github-actions[bot] commented on GitHub (Jul 17, 2026): This isn't currently possible: external links and external subscriptions can only be added one client at a time, and there is no bulk-assign action and no default/template that gets applied to newly created clients. Confirmed in source: - They're added per client from the **Links** tab of the client edit form (`frontend/src/pages/clients/ClientFormModal.tsx`), saved through `POST /panel/api/clients/{email}/externalLinks` (`internal/web/controller/client.go`). - `ClientService.SetExternalLinksByEmail` / `SetExternalLinksForRecord` (`internal/web/service/client_external_link.go`) always replace one client's entire link set (table `client_external_links`, model `ClientExternalLink` in `internal/database/model/model.go`) — there's no multi-client variant. - The panel does have a multi-client bulk-edit path (`ClientBulkAdjustModal.tsx` backed by `ClientService.BulkAdjust`, `internal/web/service/client_bulk.go`), but it only covers expiry days, traffic, and flow — not links/subscriptions. - `BulkCreate` / `ImportClients` (same file) create clients strictly from the payload given to them; nothing merges in a stored "default" set of links for new clients. - Per-client external links/remote subscriptions themselves shipped in v3.4.0 (commit `dcb923b4`), so this is a genuine gap in an otherwise recent feature, not a regression. Two open requests overlap with parts of this and are worth reading together: - #5533 — a centralized "Links" entity (create once, manage centrally) with manual bulk-assignment to selected *existing* clients, and update propagation when a link is edited later. - #5757 — a save/load "default" template at client-creation time, but scoped to days/GB/group/inbounds/flow, not links. Neither one actually covers what you're asking for — an automatic default applied to every *new* customer going forward, plus a way to push it to existing ones — so this is being kept open as its own request rather than closed as a duplicate. A maintainer may want to design the underlying data model (a global link entity plus an assignment/default mechanism) once, so it can serve this issue and #5533 together. @MHSanaei for triage/prioritization. *This comment was generated automatically; a maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4169
No description provided.