**7.2 and later:**
The solution is to use our cached user lookup: `SecurityContext.findUserWithoutLookup("theUser")`
As the users are synchronized once a day into our cache table, this should be sufficient for most use cases.
An additional improvement for cloud access to a company LDAP is to disable refereal following:
`"java.naming.referral": ignore`
With this setting you speed up the lookup for not existing names as following referalls (browsing attached ADs) could take ages if you come from a different network.
Such a config in 7.2 could look as follows
![alt text][1]
[1]: https://answers.axonivy.com/upfiles/ivyYaml_referral-ignore.png