Userman Test v4.9 Script

Is there anyway to create a script that would be able to run the userman → maintence → rebuild database function on a daily basis? I’m running into issues of the userman test giving error could not set primary key. To fix all I have to do is rebuild the database. Just getting tired of manually running it everyday. I could not find any scripts or example of scripts that called a function directly from the userman database.

Thanks.

Nevermind,

Figured it out myself.

/ system scheduler add name=“Rebuild Database Daily” on-event=“/tool user-manager database rebuild” start-date=jan/01/1970 start-time=00:30:00 interval=1d comment=“” disabled=no