Here is what I want to do:
First, I want to add group_id to my order table. when user create table, set the user group to this field.
Then, setup access group, users in the group only can see the order with the same group_id.
The first problem I’ve met is that I cannot get group object by using userSession.getUser().getGroup().
Is that possible to set constraint for users to only see the order with same group_id.