Users.GetAllUsersAsync
Description
Gets the list of all available UserInfo details from the connected Control Room.
Signature [C#]
Task<List<UserInfo>> GetAllUsersAsync()
Properties
Output
Property | Description |
---|---|
Task<List<UserInfo>> | Returns all available users information from the Control Room. |
Remarks
Use GetAllUsersAsync API to get the list of all available user information from the connected Control Room.
Example
C#
public void GetAllUsers()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
var users = Task.Run(() => context.Users.GetAllUsersAsync()).Result;
foreach (UserInfo userInfo in users)
System.Console.WriteLine("Username: " + userInfo.UserName);
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;
connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);
context.Open();
return context;
}