The easiest is probably to export the user, ROWS=N, then generate an indexfile using import. (With the right editor, you don't even need the import step.)
I have an old script to dump a user (it goes back to V6), but the above is cleaner and more consistent.
Joseph R.P. Maloney, CSP,CDP,CCP
'The answer is 42'