public void AddUsertoGroup(string username, string groupname) { try { var addUserToGroup = new AdminAddUserToGroupRequest { GroupName = groupname, Username = username, UserPoolId = _poolId }; _client.AdminAddUserToGroup(new AdminAddUserToGroupRequest()); } catch (Exception e) { Console.WriteLine(e); throw; } }