Use list of owners

This commit is contained in:
Theodor S. Midtlien
2026-09-16 10:37:59 +02:00
parent 3ee80d99bf
commit abc77e6d92
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -207,7 +207,7 @@ type Config struct {
// IsEmpty).
policy *mdm.Policy `json:"-"`
Owner string
Owners []string
}
// ApplyMDMPolicy overlays the supplied MDM Policy on top of the current
@@ -726,7 +726,7 @@ func (config *Config) apply(input ConfigInput) (updated bool, err error) {
if input.Owner != nil {
ownerString := ipcauth.OwnerPrincipalForIdentity(*input.Owner)
config.Owner = ownerString
config.Owners = append([]string{}, ownerString)
log.Infof("setting '%s' as owner for profile %s", ownerString, config.Name)
updated = true
}