Trigger maintenance task if user detected is different to primary user

I have a use case where there are applications that are specific to a user group.
When a user logs in could immy do a check to see if they are the primary user. and if not trigger a maintenance run?
this will allow any user/group specific applications a chance to install and give the user their SOE without contacting IT.

@SimonG_IntellectIT the idea is that you assign the primary user during onboarding of the machine. If not, Immy will do it for you if you turn on user affinity sync.

If you do either of those things, what you’re asking for shouldn’t be necessary.