'Add multiple static roles to power BI [RLS]

I have about hounded something roles (to be used by RLS - Row Level Security) to be defined in single power BI report. Is there any more effective option than using "Manage roles" feature? Adding one by one works but takes too much time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source