AnsweredAssumed Answered

Scheduled actions in multi-tenant environment

Question asked by schipmolder on Jul 12, 2015
Latest reply on Jul 21, 2015 by schipmolder

I've got an bespoke AMP that includes a number of (scheduled) actions.
This all works fine, without any issues.

Now we're deploying this in a multi-tenant setup and I'm trying to get my head around how this would work.

The scheduled action beans use the CronScheduledQueryBasedTemplateActionDefinition class with property "runAsUser" set to System.
It also includes a lucene query using the "workspace://SpacesStore" store.

Now, in a multi-tenant environment, how will these queries work? e.g. will it run these for all tenants individually or once as "System" user and I need to loop over the individual tenants manually?

Ideally I get it to run the action for each tenant individually and run the query for each tenant's spaces store.

Does anyone have any pointers?