Forum Discussion
Cannot retrieve Contacts from API
- 4 months ago
It seems to not be possible.
I have submitted it as an idea to the ideas forum: https://community.fabric.microsoft.com/t5/Fabric-Ideas/Add-Contacts-and-Endorsement-as-fields-to-Admin-REPORTS-API/idi-p/5151362
I found the URL by modifying the URL found in this StackOverflow post: https://stackoverflow.com/questions/76102839/powerbi-api-getting-all-reports-contact-owner-i-can-only-see-the-infos-or-wo#:~:text=I%20was%20able%20to%20get,reportId/contacts%22%20-Method%20Get
I think Microsoft changed this API to make it not accessible by SPNs. Very disappointing they do not provide a way to retrieve Workspace / Report contacts
Hi stephan_ ,
Thanks for sharing the reference and your observation.
I understand why this feels like a change in behavior. Based on what you’re seeing, it does appear that access to this endpoint using service principals may be restricted now. Since this isn’t a documented Power BI REST API, its behavior can change, which could explain why it might have worked earlier in some cases.
At the moment, there doesn’t seem to be a supported way to retrieve the report or workspace contact details via SPNs.
If this is something critical for your scenario and as already suggested by tharunkumarRTK you may consider sharing it in the Fabric Ideas forum so the product team can review it.
Please reach out for further assistance.
Thank you.
- v-veshwara-msft4 months agoCommunity Support
Hi stephan_ ,
Just wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.Additionally if you have submitted this as an idea in Ideas Forum please share the idea link here so that others with similar requirement can upvote it which increases visibility.
Thank you.- stephan_4 months agoRegular Visitor
Yes, it's https://community.fabric.microsoft.com/t5/Fabric-Ideas/Add-Contacts-and-Endorsement-as-fields-to-Admin-REPORTS-API/idi-p/5151362. I have added it as a solution below the post.