Further exploration
There are quite a few different ways to take this solution. One idea might be using a Zoom meeting instead of a Microsoft Teams meeting. To do so, you’ll need the Zoom client and calendar client. Instead of generating an ICS file manually, you’ll be able to download an ICS file directly through the Zoom interface. See https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0060791.
Another idea might be implementing more robust validation mechanisms for the identity document, such as verifying that the document is still valid or that it has a document identification number associated with it.