/// <summary>
 /// Get entity from users by key
 /// </summary>
 /// <remarks>
 /// Represents an Azure Active Directory user object.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userId'>
 /// key: id of user
 /// </param>
 /// <param name='consistencyLevel'>
 /// Indicates the requested consistency level. Documentation URL:
 /// https://developer.microsoft.com/en-us/office/blogs/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static MicrosoftGraphUser GetUser(this IUsersOperations operations, string userId, string consistencyLevel = default(string), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetUserAsync(userId, consistencyLevel, select, expand).GetAwaiter().GetResult());
 }