Programmatically determining alarm inheritance from a UDT

Is it possible to programmatically determine if a particular alarm, on a particular tag, is inherited from a UDT (and thus, unable to be deleted)?

If you add typeId to the tag path it will return null if not UDT and return the path of UDT if is a UDT.

Example,

print system.tag.read('[TagProv]myTag.typeId').value

Is this helpful for you?

Not quite, but thank you for the response. The tag is part of an instance of a UDT. The UDT itself has a few alarms configured on some member tags. There are also some additional alarms created on particular instances of that UDT.

What I’m trying to determine programmatically is if a particular alarm is one that is inherited from the UDT itself or if its one of the alarms created on that specific tag only.