Repository navigation
Feature request: allow linking a SIM card (Item_DeviceSimcard) to an asset (router / PC / phone), not only to a user
#500
Smiley-k
started this conversation in
Ideas and feature requests
Replies: 1 comment 1 reply
|
The existing items_id/itemtype relation makes this look more like exposing an existing component relationship than inventing a second assignment model. I'd keep assigned user and installed asset independent: a SIM can belong to a person operationally while physically sitting in a router. Existing rows with items_id=0 also give a straightforward compatibility path. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Version
11.0.9
Actual behavior
SIM cards are managed as component records (
Item_DeviceSimcard) and are listed in theSIM cards section (
/front/item_device.php?itemtype=Item_DeviceSimcard).Today a SIM card can only be assigned to a user:
Line, MSIN, User (assigned to), Technician
(
Item_DeviceSimcard::getSpecificities()), and the class implementsAssignableItemInterface(
use AssignableItem).neither in the list nor in the form.
the device forms reference
Item_DeviceSimcardonly through generic JavaScript configurationarrays (asset/state type lists), not as a component that can be added to the asset.
glpi_items_devicesimcardscontains the relation columnsitems_id/itemtype(inherited from
Item_Devices), they are never exposed by the UI, and in practice they stay at0(in our instance: 2 SIM cards, both assigned to users, 0 linked to any item).
GET /Components/Simcardand/Components/Simcard/{id}work,but
GET /Components/Simcard/{id}/Itemsreturns 500, while for any other component type(e.g.
/Components/HardDrive/{id}/Items) it returns the list of instances attached to assets(with
itemtype/items_id).Workaround used today: the device name is typed into the SIM card's free-text comment field.
It is not searchable in a reliable way, not reportable, and it leaves no history when a SIM is moved
from one device to another.
Expected behavior
Allow a SIM card to be linked to an asset, in addition to (and independently from) the current
user assignment:
NetworkEquipment(router),Computer(PC/laptop),Phone, etc.with search options on both sides (SIM → device, device → SIM).
Item_DeviceSimcardwithitemtype/items_id,and a working
/Components/Simcard/{id}/Itemsendpoint), so imports and integrations can set it.Why this is needed (use cases)
channel). We must know which SIM (MSIN, operator, tariff) is installed in which router, per
location and entity — today this is only a text note.
not to the person using it.
given SIM has been used and which SIM a device had before (asset history / logs).
on the item, and attach SIM-related operations to the same ticket.
“which SIM is in which device” must be reportable (by entity, location, status), not stored in
free-text comments.
device link the reported card cannot be matched with the device it was found in.
Related issues
item ↔ SIM relation was attempted/reachable but is currently broken/not supported.
simcards[]operator / phone-number fields during inventory.Alternative considered
Creating the SIM as a separate generic asset (e.g. “SIM card” custom asset type) and linking it to
the device — this duplicates the existing component model, loses MSIN/PIN/PUK fields and the
inventory-agent compatibility, so it is not a proper substitute.
All reactions