Mmctl: create the first user

Hi! I’ve a question about local mm user creation. How can we authorize on MM with local created user? As usually?

For example:

  1. I create user locally

email = “qwe@qwe”
name = “dan”
password = “password”
subprocess.run([“mmctl”, “–local”, “user”, “create”, “–email”, email, “–username”, name, “–password”, password,
“–firstname”, “firstName”, “–lastname”, “lastName”])

  1. I wanna auth with this user on MM to add another users, teams and channels. Should I do like this?

url = “some-url”
community_name = “test”
username = “dan”
password = “password”
subprocess.run(
[“mmctl”, “auth”, “login”, url, “–name”, community_name, “–username”, username, “–password”, password])