Local access to database changed on server after upgrade from 7.0.4 to 8.5.2

I’ve .COM application which configures the server after new/upgrade installation. It changes the base ACL of templates and adds new acl according to company policy for local office, region and global groups.

This COM application worked from R5 to r8.5.1 for new/upgrade servers without any change.

In 8.5.2 it works for new installation without any issue but, in upgrade from 704FP1HF250 to 8.5.2, same code give access issue (not authorized to change ACL on local template/database). Any body why this erratic behaviour?

Best regards,