.NET Framework/Embed for your organization/UserOwnsData/Services/PowerBIService.cs
/// <summary>
/// Returns a list of Power BI workspaces
/// </summary>
/// <returns>List of workspaces</returns>
Returns a list of Power BI workspaces
Returns a list of Power BI workspaces
public static async Task<IList<Group>> GetWorkspacesAsync()
		{
			using (var client = GetPowerBiClient())
			{
				var groups = await client.Groups.GetGroupsAsync();
				return groups.Value;
			}
		}
public static async Task < IList < Group > > GetWorkspacesAsync ( ) { using ( var client = GetPowerBiClient ( ) ) { var groups = await client . Groups . GetGroupsAsync ( ) ; return groups . Value ; } }
Returns a list of Power BI workspaces
Returns a list of Power BI workspaces
List of workspaces
List of workspaces