You also could restrict the visibility for special user roles. So that some usere see all data and some users only see restricted data.
For information about that, check the related course in the academy:
https://gettingstarted.mendixcloud.com/link/module/36/lecture/196
Is the object that you are showing in the grid related to the account? If yes, you could use xpath to current user. If not, you need to show the current account in a dataview and use your grid nested in that view (as explained above).
Hi Xue,
Are you associating the object to the accounts table? If so, you can use the current object token in your xpath constraint. You would need to have a dataview of the current user account on the page and the datagrid inside of it.
Then you can add this constraint
If you need help getting the current users account object, you can use this microflow as the data source in the dataview
Hope this helps!