afterCreate for an entity type that mixes
SeedData, I’m hoping to access the current user who “created” the data, which we’re defining as the user who a) performed provisioning, or b) the user who called
upsertSeedObjs for the specific data. Within the
afterCreate function in both cases, I’m finding that
c3Context().username is always
provisioner, which I expected for provisioning, but not necessarily for creation through
a) When provisioning, is there a way to access the user who provisioned? I see
TagProvisionLog.fetch() provides an
author, but can that username be fetched from somewhere during the provisioning process itself?
b) Similarly, when calling
upsertSeedObjs, is there a way to access the user who made the call from console rather than getting
provisioner (or is this a bug)?