JIST
JIST

Reputation: 1360

Issue with create a user in MLRun/Iguazio via API

I have a problem, how can I create user in MLRun/Iguazio system. I did not see relevant API in MLRun/Iguazio for creating the user. Unfortunately, I do not have relevant sample.

Did you solve the same issue?

Upvotes: 0

Views: 59

Answers (1)

JIST
JIST

Reputation: 1360

I have solution. It is possible to create user via IGZ-Mgmt-SDK see link. It is short sample, how you can create a user:

!pip install igz-mgmt

import igz_mgmt

client = igz_mgmt.Client(access_key="<some-access-id>")
new_user = igz_mgmt.User.create(
    client,
    username="newusername",
    password="rePlaceme12@!",
    email="[email protected]",
    first_name="igz-sdk",
    last_name="test",
    uid=50,
)

Upvotes: 0

Related Questions