LDAP/AD Group not recognizing new AD group members

I’ve found a script on this page.

https://help.nextcloud.com/t/problems-with-sharing-with-ldap-group/79539