Find all rules that use a function on server

I want to find all the rules which uses functions like isusernametaken, getgroupbyname, group, user, etc. I know the approach to find by exporting and finding in the zip file. It may work when we are thinking to find in a single application. In my case I want to identify in the whole environment.

 Discussion posts and replies are publicly visible