Is there way to change user account with tasker?
You need root access for this answer to work.
Setup this action in a task:
Code → Run Shell →
am switch-user USER_ID,
tick Use Root
To know the USER_ID of a user account, see my answer here.