Automate permissions grant on data apps

Hi,

Suppose I have 50 data apps and want to grant access to 20 users for all of them.

I found the following way to do this:

But havin to do this manually 1000 times is a bit of a pain in the ass…

Does anyone have an idea on how to automate this

process somehow?

I am talking community hub here. I suppose business hub has already mechanisms for this.

Many thanks beforehand,

Marc G