snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

[Feature]: Nesting companies

Open Valinwolf opened this issue 1 month ago • 3 comments

Snipe-IT Version

v8.3.6 - build 20551 (master)

How can we help?

It would be nice to have the ability to set “Parent Company” and have users with a new permission “Access Subsidiary Company Assets”

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Valinwolf avatar Nov 26 '25 21:11 Valinwolf

I can definitely see how that would be useful, but it does create a lot of recursion possibilities and is generally a giant mess to try and test.

snipe avatar Dec 03 '25 10:12 snipe

I see a couple possibilities to prevent deep recursions:

  1. Limit nesting to 1-2 companies deep
  2. Make the permissions a separate affair and the company nesting purely visual.

In the case of #2 you could add a button to a user to automatically recurse (as a one time deal) giving permissions to subsidiary companies.

I know when getting into long recursion operations with deeply nested items can cause some heavy DB ops and CPU usage, but that is heavily dependent on the hardware the install is on whether it will be problematic or not. That in mind, perhaps make it an option for the user with a warning about the impacts of deeply nested companies to enable/disable subsidiary support.

Valinwolf avatar Dec 03 '25 12:12 Valinwolf

We have a use case for this as well. We ended up using custom fields, but this does not solve the problem completely. For us, the permission is the biggest issue.

tomaszszkudlarek avatar Dec 04 '25 13:12 tomaszszkudlarek