Python SDK bulk user creation: 'users' attribute missing in UserRequest object

Trying to script a bulk user import from a CSV file using the Nice CXone Python SDK. The goal is to create 500+ users without hammering the API with individual POST calls.

I’m looping through the CSV rows and building a list of UserRequest objects. Then I pass that list to users_api.create_users. The docs for the endpoint /api/v2/users show a JSON body with a users array. But the SDK wrapper CreateUsersRequest doesn’t seem to have a users property I can set directly. It just has idempotency_key.

Here’s the snippet:

from nicecxone.platformclient import users
from nicecxone.platformclient.models import UserRequest

users_api = users.UsersApi(api_client)

user_requests = []
for row in csv_data:
 req = UserRequest(
 name=row['name'],
 email=row['email'],
 phone_number=row['phone'],
 roles=[role_obj] # assuming role_obj is valid
 )
 user_requests.append(req)

# This fails
try:
 api_client.create_users(user_requests)
except Exception as e:
 print(e)

The error is AttributeError: 'list' object has no attribute 'idempotency_key'.

The create_users method signature expects a CreateUsersRequest object, not a raw list. When I try to wrap the list in CreateUsersRequest(users=user_requests), Python throws TypeError: CreateUsersRequest() got an unexpected keyword argument 'users'.

How do I properly construct the request body for the bulk endpoint using the SDK models? Am I missing a wrapper class or is the SDK generation out of sync with the API spec?