Forum Discussion
REST API - Refresh User Metadata
Thanks for your reporting. Based on my test, the Power BI groups API indeed works as your description, the API won't return the group until the refreshusermetadata API is called. My understanding is that this is most probably by design.
Since the group in Power BI is actually the O365 group, as a workaround, instead of using Power BI REST API, you could try to call the GRAPH group API to read the groups member information. The list group member API returns group members immediately when I adding a member to one group.
- jmia9 years agoNew Member
Thanks for the suggestion, that is an interesting idea. If I do that, is there an easy way to tell which groups coming back are associated with Power BI Workspaces? I'll look into it.
- Eric_Zhang9 years agoMicrosoft Employee
jmia wrote:
Thanks for the suggestion, that is an interesting idea. If I do that, is there an easy way to tell which groups coming back are associated with Power BI Workspaces? I'll look into it.
You could try to call the GROUP API and filter O365 groups owned/created by Power BI users in that tenant.