Skip to main content
Version: Current

Group.GetUsersAsync

Description​

Gets the list of users associated with the specified group id from the connected AI Command Center.

C#​

Task<IEnumerable<User>> GetUsersAsync(int groupId)

Properties​

Input​

PropertyDescription
groupIdSpecify the group id to retrieve the list of users.

Output​

PropertyDescription
Task<IEnumerable<User>>Returns the collection of users belonging to the specified group.

Remarks​

Use GetUsersAsync API to retrieve all users mapped to a group using the group id.

Example​

C#
public async Task GetUsersById()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int groupId = 3;

IEnumerable<User> users = await context.Group.GetUsersAsync(groupId);

foreach (var user in users)
{
Console.WriteLine("User Name: " + user.UserName);
}
}