I have associated camera to access control event. When access control event fired how can i get associated camera id or camera details for the event ?
Unfortunately, there is currently no way to do that. The information about associated camera is not exposed through any public API.
As a side note, the cameras in XProtect are associated to an Access Control Unit. All events from that unit will show the cameras associated to it in the Smart Client, when selected. Is this what you mean when you say that the camera is associated to the event?
Hi @gmuerov, I might be misunderstanding the question but I have the demo access control plugin/server setup in a test environment and I think I was able to discover the related camera both using the .NET Framework MIP SDK and the API Gateway websocket event subscriptions.
When using the .NET Framework SDK it looks like I can receive VideoOS.Platform.Data.AccessControlEvent records and the FQID in the RelatedSurveillanceItems collection can be used to find the camera associated with that event:
AccessControlSystemEventId : 5944e586-57f1-411d-8dfc-555898b0871a
AccessControlSystemId : 75460cb2-2d41-4cbf-91ca-006fc4ff2a05
AccessControlEventTypeId : e660baf7-3103-5686-bbc9-c3acfb31b5ac
AccessControlEventSourceTypeId : 3b559f2e-3693-5463-a6fb-005c1f0259dc
AccessControlEventSourceId : 9f08fadb-0882-59b3-ba98-eb2ec35a9e77
RelatedAccessControlCredentialHolderIds : {}
RelatedAccessControlElementIds : {}
EventCategories : {}
RelatedSurveillanceItems : {VideoOS.Platform.FQID}
Properties : {}
Reason :
EventHeader : VideoOS.Platform.Data.EventHeader
And using websockets I was able to receive access control events with the following shape with the camera ID available under events.data.surveillanceItems:
{
"events": [
{
"specversion": "1.0",
"type": "8c1de032-e50b-52cc-9de6-8e0b797f0961",
"source": "accessControlUnits/4fb7eb9a-9f1a-56dc-9866-435187cb979f",
"id": "f1f52d88-8c3b-4321-b85b-ce987334bec5",
"time": "2026-05-29T21:42:10.2979727Z",
"data": {
"system": "75460cb2-2d41-4cbf-91ca-006fc4ff2a05",
"id": "dce93a21-af9f-4df3-825a-a778f9cbd817",
"eventType": "8c1de032-e50b-52cc-9de6-8e0b797f0961",
"source": "4fb7eb9a-9f1a-56dc-9866-435187cb979f",
"sourceType": "3b559f2e-3693-5463-a6fb-005c1f0259dc",
"credentialHolders": [],
"elements": [],
"categories": [],
"surveillanceItems": [
"cameras/cc1e5999-e93a-4f17-8b31-d65766d18d6e"
],
"properties": {}
}
}
]
}
This looks correct! I wasn’t aware that you could get the associated cameras this way. @Harsha Please refer to Josh’s answer, the “RelatedSurveillanceItems” FQID collection should contain the cameras associated with the event and use their ids to find out further details for those devices.