Hi Gonçalo
Matthias is right, You have to use the GetUserId action to get login user id. And set it to filter.
I don't know what the Attribute1 you mean, But show/hide the menu item mostly depends on the login user role.
If so, insdead of using aggregate, You should use CheckRoleAction for each role.
Kind Regard