LDAP / AD integration Group


I was facing problem with group filtering. In LDAP I created a gorup cloud and added one user in it. In Nextcloud I have chosen this group like so: (&(|(objectclass=posixgroup))(|(cn=cloud)))
But any other user still able to log in for some reason. Am I missing something?


Resolved. Left the Group tab empty. But filtering is placed in Login Attributes like so: (&(&(objectclass=inetorgperson)(memberof=cn=cloud,cn=groups,cn=accounts,dc=mydomain,dc=com))(uid=%uid))