Stream: implementers
Topic: AuditEvent tenant
Veliyan Georgiev (Dec 02 2020 at 14:51):
Hi all.. Where would U say that the tenantid would be recorded in an AuditEvent given a multi-tenant system?
David Pyke (Dec 02 2020 at 14:53):
Can you give a definition of tenantid?
Veliyan Georgiev (Dec 02 2020 at 14:59):
the unique id of a single customer system instance in a product where multiple customer instances are supported
David Pyke (Dec 02 2020 at 15:05):
So, if I understand this, you are having one audit log for multiple instances? If that is the case, there are several options. If you need to tie that record to one tenant, you could extend the AuditEvent to have a tenantid element extension, alternately, you could add the tenantid to that tenant's Organization record if it only matters when that tenant is the source and/or actor.
David Pyke (Dec 02 2020 at 15:05):
Without more detail of your use case, it's hard to give specific recommendation
Veliyan Georgiev (Dec 02 2020 at 15:17):
Thanks..yes..I guess I missed that part. I have a multi-tenant system that produces audit events routed to an s3 bucket. currently the tenant info is in the envelope of the audit event but I needed it moved into the audit event prior to storing.
David Pyke (Dec 02 2020 at 15:18):
THen it's safest to extend the AuditEvent to have a tenantid element.
John Moehrke (Dec 02 2020 at 17:26):
no
John Moehrke (Dec 02 2020 at 17:30):
The tenantid would be another .agent.
John Moehrke (Dec 02 2020 at 17:30):
there is not a good code for this type of agent, but you can define your own code
John Moehrke (Dec 02 2020 at 17:31):
I would like you to enter a Change Request to add a code for this kind of agent
David Pyke (Dec 02 2020 at 17:32):
So you'd see it as an actor, not simply a sort mechanism?
John Moehrke (Dec 02 2020 at 17:33):
a tenant definitely is part of the transaction, so they certainly are an agent
David Pyke (Dec 02 2020 at 17:43):
That makes sense. I chose the wrong my three suggestions.
Veliyan Georgiev (Dec 02 2020 at 18:07):
I see the case for .agent. @John Moehrke great suggestion. I'd put an RFC
Last updated: Apr 12 2022 at 19:14 UTC