UI - Sorting for User API

Hello,
We have implemented a custom page that uses c8y-data-grid to display all the users in the tenant, we wanted to know if there is any way to apply the sort feature on User API, The columns we want to sort are username, email, and ID.

Thanks,
Divya K

Hi Divya,

sorting users via the User API isn’t possible.

As a workaround you could use the local variant of the c8y-data-grid. In this case, you load all existing users of the tenant and set them on local c8y-data-grid using the rows parameter. The local data-grid already comes with basic filter and sortation capabilities.

Best regards



Christian Guether

Thanks a lot Christian for the answer



Divya Krishnamurthy

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.