I have to remove all the security privileges' on all buttons etc. because I need to copy the project and give it to a customer. My problem is I have hundreds and hundreds of faceplates and pages so manually going one by one on every single component to see if it has security then remove it is not possible. Is there a way to search for things that have security privilege's on them?
You could write a script to remove security from the window itself by deleting the permissions.json file for each window in the project. This could probably be done for the templates as well. I would test this first and make sure that deleting a permissions.json won't corrupt the window. As for components and other things, you might could write a script the removes or sets security privileges and loop through all comps on a screen, but I'm not sure of a way to do that.
This may be a bit late, but if you have set your security privileges as recommended here, How to enable a component in for a particular user - #3 by PGriffith, it should be just a matter of your customer creating the roles on their system and they're in!
If you have done expression bindings or similar then you'll appreciate the benefits of Component and Window Security by the time you're finished. Sorry.