feature: device profiles - set assigned user for logon

This commit is contained in:
Gary Sharp
2025-09-07 12:48:10 +10:00
parent 36c24542e1
commit 3e514fdf9a
13 changed files with 580 additions and 192 deletions
@@ -134,7 +134,8 @@ namespace Disco.Web.Areas.Config.Controllers
ProvisionADAccount = true,
ComputerNameTemplate = DeviceProfile.DefaultComputerNameTemplate,
DistributionType = DeviceProfile.DistributionTypes.OneToMany,
OrganisationalUnit = ActiveDirectory.Context.PrimaryDomain.DefaultComputerContainer
OrganisationalUnit = ActiveDirectory.Context.PrimaryDomain.DefaultComputerContainer,
SetAssignedUserForLogon = true,
};
Database.DeviceProfiles.Add(deviceProfile);