I was trying to create a record rule for the group_hr_manager. The objective of this record rule is not to show admin user and his user in users list. I saw it was achieved while I was already logged in.
But when I try to logout and then login into the system using a user id of this group the "Internal Server Error" appears.
bellow is the record rules in security.xml:
Only admin can see admin user field
['&',('id', '!=', 2),('id', '!=', user.id)]