Home page not filtered correctly

I used ACLs to filter a user’s view and create a custom dashboard for a group.
I have assigned “dashboard” and “user” roles because if I assign only “dashboard” role I get access denied error.
When I browse the home page, I see some warnings in “Status overview” section related to nodes that the group should not see.
how can I fix it?

If you are referring to org.opennms.web.aclsEnabled that setting only filters out from some of the searches. It doesn’t really act as a true ACL for limiting access. As such, there are a few components that don’t honor the setting.

See User Restriction filters / WebACLs for details.