danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
177 stars 94 forks source link

not enough permissions (9) #12

Closed udhayamoorthi closed 7 years ago

udhayamoorthi commented 8 years ago

Getting not enough permission (9) error message while executing the bellow usermanager command.

Help needed !!

ITikCommand activepro = connection.CreateCommand("/tool/user-manager/user/create-and-activate-profile",
            connection.CreateParameter("customer", "admin"),
            connection.CreateParameter("numbers", "udhay"),
            connection.CreateParameter("profile", "Quota5GV10d"));
            activepro = connection.CreateCommand(activate);
            var retmsg = activepro.ExecuteScalar();
           Console.WriteLine("Result: " +  retmsg);

Regards Udhaya Moorthi

danikf commented 8 years ago

Hi, the error is from mikrotik or from .NET runtime? Could you please post here the whole exception with stack trace?

My guess is that your mikrotik account has no permission to perform that change ...

D

danikf commented 7 years ago

Closing as unrepeatable ...

D