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

# resources.py
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')

#admin.py

class YourModelAdmin(ImportExportModelAdmin):
    resource_class = YourModelResource

class CustomUserAdmin(ImportExportModelAdmin):
    resource_class = UserResource

# Register YourModel with its admin
admin.site.register(YourModel, YourModelAdmin)

# Register User with the custom admin
admin.site.unregister(User)  # Unregister the default User admin
admin.site.register(User, 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