Create users within Mikrotik Import file

Hi everyone!

I’m currently working on a script that downloads a .rsc file from Internet and imports it in the router. All of the commands implemented in the .rsc are working properly except from the user creation. The configuration applied is the following one:

/user
set [/user find where name=test] password=xxxx
add name=sat password=yyyy group=read

However, when I execute the import command, I get this error:

script error: not enough permissions (9)

In order to avoid this problem, I tried adding the parameter dont-require-permissions=yes in the script but the error persists. If I execute the previous commands in the script without using the import file, the are no errors. I would like some help to fix this issue.

Thanks.

you can try

/user set password=xxxx [find name=test]
/user add name=sat password=yyyy group=read