Change Visibility of Snippets for all Projects

To transfer the groups and projects from a Gitlab 17.7 server to another Gitlab 17.7 server by direct transfer, I have to change the visibility of snippets for all projects(see photo below). It would take time to change the settings for all projects one by one. Can I change the settings for all projects at one time?

Screenshot 2025-01-16 165225