Update Asset Indexes on Login
Updating Asset indexes is pretty coupled to the tool in the Settings portion of the control panel.

But if you wanted to try and duplicate that functionality in a plugin, you could have it listen for the onLogin event to do your business.