Using django-import-export in the admin for the User

I tried to setup the import-export to integrate it in my User admin documentation import-export

from import_export import resources
from .models import YourModel  # Import your existing models
from django.contrib.auth.models import User

class YourModelResource(resources.ModelResource):
    class Meta:
        model = YourModel

class UserResource(resources.ModelResource):
    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name', 'email', 'is_active', 'date_joined')

class YourModelAdmin(ImportExportModelAdmin):
    resource_class = YourModelResource

class CustomUserAdmin(ImportExportModelAdmin):
    resource_class = UserResource

# Register YourModel with its admin, YourModelAdmin)

# Register User with the custom admin  # Unregister the default User admin, CustomUserAdmin)

YourModel test model works fine. But I don’t see the import-export appear in User

I have no error messages. Is it possible to use import-export for the build-in User model?

Solved: I already had a CustomUserAdmin. Replaced the first 2 lines there with this code:

class CustomUserAdmin(ImportExportModelAdmin, AdminUser):
    resource_class = UserResource

# rest of the custom user admin