/// <summary> /// Grants the specified user permissions to the specified workspace. /// </summary> /// <remarks> /// <br/>**Notes**: <li> Only Admin access right is supported. /// </li> <li> Users that have been recently added to a group may /// not have their new group immediately available. /// </li><br/>**Required scope**: /// 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='groupId'> /// The workspace id /// </param> /// <param name='userDetails'> /// Details of user access right /// </param> public static object AddGroupUser(this IGroups operations, string groupId, GroupUserAccessRight userDetails) { return(operations.AddGroupUserAsync(groupId, userDetails).GetAwaiter().GetResult()); }