Run an occ command at user login

Hi,

Has anybody seen any topics about being able to run an occ command (ideally with variables e.g username) at 1st login

id like to map to a users home folder (using files_external as they are on centralised storage), but only at the point the user starts using nextcloud

Thanks

ZT