sdk.user.create()

elements.sdk.api.user

Create a new user.

Create a new user in the system, assigned to the specified user collection. This functionality is only available for admin users. This automatically creates an AOI collection associated with the new user.

Parameters

  • name (str) - The display name of the user
  • email (str) - The email address for the user account
  • user_collection_id (str) - The user collection (department) ID to assign the user to

Returns

User - The created user object

Example(s)

# Create a new user
user = await sdk.user.create(
    name="John Doe",
    email="[email protected]",
    user_collection_id="department-uuid-here"
)

# Output (User)
id: "user-uuid-here"
name: "John Doe"
email: "[email protected]"
user_collection_id: "department-uuid-here"