Get user groups from Ldap and setiing security permissions according to these?

In our application, we made our ldap connection in the security module. We can get the user list via ldap. But; 1. We can only authenticate users on a user-based basis. How can we get user groups from Ldap and set security permissions according to these groups? 2. Update the application list with user security authorization. When we run the application, does not all the application slides update.