It would be great if we can security trim the datasets based on the logged in user or their roles. Is there are workaround / approach to achieve that using the REST APIs?
Yes Vivek,Nice idea, you are right and we almost have more than 20 suggested such improvement, lets vote for it.
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.