public static void XStaffs_GetXStaffsAccounts(XPress xPress) { if (xPress.GetXStaffUsers(SCHOOL_REFID).Data != null) { foreach (XStaffType s in xPress.GetXStaffUsers(SCHOOL_REFID).Data) { Console.WriteLine("loginId: " + s.appProvisioningInfo.loginId); Console.WriteLine("tempPassword: "******"tempExpiryDate: " + s.appProvisioningInfo.tempPasswordExpiryDate); } } }