How to obtain the equipment to which an employee has access?
It is possible to use a method to return the list of equipment and its access level to which the employee has permission. The method to be used to get the equipment list and the access level the employee has access to is: GET /api/mytenant/myorganization/settings/assetsByUsers/getEquipmentByUser?username=[email protected]&modifiedOn=2020-11-20T09:55:33.396836+00:00&maxRecords=100 The method parameters are optional. If the parameter maxRecords is not specified, it returns a maximum of 100 records. The logic is the following: Notes:Method
"accessLevels":
[
{
"accessLevelId":
"c1474504-aa6c-4a5c-b9c8-fa302195e3c7",
"accessLevel": "G",
"acessLevelModifiedOn":"2020-11-20T09:55:33.396836+00:00"
}
],
"equipmentKey": "MCH01",
"description": "Machine #1",
"id":
"4133d120-7339-44b5-bafc-aad754f35f49",
"isActive": true,
"modifiedOn":
"2020-11-20T09:55:33.396836+00:00",
"isUpTime": true,
"criticality": 000002,
"barcode": null,
"locationDesc": "Production Line #1",
"location": "PROD01",
"serial": "IU786TGFDE58",
"responsible": 0001,
"brandDesc": "ASPECTTO",
"brand": "ASPECTTO",
"brandModelDesc": "TU4528",
"brandModel": "TU4528",
"familyDesc": Machine,
"family": 0001,
"parentEquipment": null,
"parentEquipmentDesc": null
2.
"externalReferencID":
null,
"picture": "null",
"pictureThumbnail": null,
"remarks": null,
"keyword": "Multi Split Ar114986",
"exchangeRateDate": "0001-01-01T00:00:00",
"exchangeRate": 0.0,
"baseCurrency": null,
"company": "Demonstration Company",
"isDisposed": false,
"reportingCurrency": null,
"currency": "British pound"
}