Create superUser #3436
-
Is there a way to create a superuser using Nautobot API Is there any other way of creating nautobot superuser using a python script? If python script is not possible can you suggest a way to create it using ansible module? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It looks like the only option right now is to use the ansible.builtin.expect module to run |
Beta Was this translation helpful? Give feedback.
-
Please refer to issues #2208 and #3438 (created from this discussion) |
Beta Was this translation helpful? Give feedback.
It looks like the only option right now is to use the ansible.builtin.expect module to run
nautobot-server createsuperuser
and answer the prompts. You could usenautobot-server createsuperuser --noinput --username theusername --email [email protected]
to create the user without a password but the API doesn't currently support updating passwords on existing users, only setting passwords on new users created through the API.