Forum Discussion
Anonymous
2 years agoNot applicable
[HELP!] Powershell Automation Script to add group to PowerBI Workspaces with a service principal
Hi ! I am trying to automate a PowerBI task using a service principal. With a powershell script i want to add a group to all the workspaces in my organization. I am using : Connect-PowerBISe...
Anonymous
2 years agoNot applicable
Hi GilbertQ,
Yes i have added my security group that contains my service principal into this setting and also added all API permissions to the service principal app (only delegated ones)...
Can it maybe be that the functionnality to retrieve all the workspaces as a service principal with the API is impossible right now ? I mean we can retrieve all the workspaces he is in but not as an admin even if he got the privileges ?
Thanks,
Best regards,
Quentin Michelix.
GilbertQ
Super User
2 years agoHi Anonymous
This is certainly possible as I do this every day for some of my clients.
- Anonymous2 years agoNot applicable
Hi GilbertQ ,
Do you mean that it is possible to retrieve all the workspaces in the organization with a service principal ? Or that there are limitations with the APIs when it's a service principal ?