Create admin user and disable registrations via cli / API

Chris929a year ago

Hi all,
I want to add traccar to our IoT-Stack offering.
For security reasons, the system is not allowed to leave anything open by default (to prevent abuse).
How can I add an admin and disable registration? I want to write a script to do these 2 tasks so that the user creating the stack receives his user/pw via our system and no one can access it besides said user :)

Anton Tananaeva year ago

Check what the official app does and do the same thing. It uses the same API.

Chris929a year ago

Hi Anton,
where can I read about the things that the official app does?
I don't remember that my ios app asked me for a new user and a registration disable?

Anton Tananaeva year ago

What do you mean by asking? It won't proactively ask you anything, but you can do those things in the app.

Chris929a year ago

yes - that's what i wanted to know :) basically a documentation / a sample that I can use as a guide :) That would help me - I don't need a full solution - just a "hint" where to look :)

Anton Tananaeva year ago

Have you checked settings? Registration is disabled in the server settings. New user can be registered in the users settings.