I want to add a group with certain permissions to all my spaces in confluence

I have a group Test_confluence it has certain permissions, I want to add that group to all my spaces on my confluence, how can I do that using APIs.
I am using confluence Cloud

1 Like