Thank you for your answer, but I think in my case it is a bit more difficult.
I have folders in my library for the countries Germany, France, USA and UK. For each of these folders I have a special sales authorisation group for the sales staff. Now, for example, if I upload a document to the German folder and set the column value of this document to internal, the flow should stop sharing this document for the permission group "Germany".