This topic contains examples of how to:
To query a specific user, you must perform the following:
TIP: To learn how to query the profile of the user, read Querying user profiles.
Here is a code example:
public
User GetUser(Guid userId)
{
UserManager userManager = UserManager.GetManager();
User user = userManager.GetUser(userId);
return
user;
}
To query all users, you must perform the following:
List<User> GetAllUsers()
List<User> users = userManager.GetUsers().ToList();
users;