snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.21k stars 3.2k forks source link

[Feature Request]: Department - Location relationship logic #14851

Open swift2512 opened 5 months ago

swift2512 commented 5 months ago

Is your feature request related to a problem? Please describe.

Currently Department is tied to single location and that relation is only visible in list at Settings > Departments. You may select location for department being created, but not the other way around (select department for location being created). Current approach is problematic for multi office companies - single department can be spread across different locations and you can't have it in SnipeIT.

Describe the solution you'd like

Different locations can be assigned to same single Department. When you select Department through Settings > Departments, number of locations is displayed the same way users are. Clicking on that number takes you to Department page where all locations of this department are listed. (Looks like total rewrite of Departments part :) )

Describe alternatives you've considered

Get rid of location part in Departments completely because department-location relation is only visible in Settings > Departments and 'Update department', but this relation is not visible from location perspective.

Additional context

No response

JasonZhang0320 commented 5 months ago

Great minds think alike.

And, even if it is the same department, there are users at different office locations. Therefore, determining the user's location based solely on OU is not flexible and convenient enough. My idea is that Snipe-IT could allow administrators to specify a field of the AD user, such as "street", to customize the user's work location. If this field is empty, the user's location is set to the same location defined by the OU. Otherwise, the user's location is equal to the content of this custom field.