/// <summary> /// Returns a list of workspaces the user has access to. /// </summary> /// <remarks> /// <br/>**Note**: Users that have been recently added to a group may not /// have their new group immediately available, see [Refresh user /// permissions](https://docs.microsoft.com/en-us/rest/api/power-bi/users/refreshuserpermissions).<br/><br/>**Required /// scope**: Workspace.Read.All or Workspace.ReadWrite.All<br/>To set the /// permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='filter'> /// Filters the results, based on a boolean condition /// </param> /// <param name='top'> /// Returns only the first n results /// </param> /// <param name='skip'> /// Skips the first n results /// </param> public static Groups GetGroups(this IGroupsOperations operations, string filter = default(string), int?top = default(int?), int?skip = default(int?)) { return(operations.GetGroupsAsync(filter, top, skip).GetAwaiter().GetResult()); }