/// <summary> /// Gets user information from the directory. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Graph.RBAC.IUserOperations. /// </param> /// <param name='userPrincipalName'> /// Required. Filter based on userPrincipalName. This works well with /// guest users upn. /// </param> /// <returns> /// Server response for Get tenant users API call /// </returns> public static Task <UserListResult> GetByUserPrincipalNameAsync(this IUserOperations operations, string userPrincipalName) { return(operations.GetByUserPrincipalNameAsync(userPrincipalName, CancellationToken.None)); }