diff --git a/profile.go b/profile.go index 13b0094e..218b3959 100644 --- a/profile.go +++ b/profile.go @@ -13,6 +13,7 @@ type Payload struct { PayloadDisplayName string `json:"displayname" db:"displayname"` PayloadDescription string `json:"description,omitempty" db:"description"` PayloadOrganization string `json:"organization,omitempty" db:"organization"` + PayloadScope string `json:"scope" db:"scope" plist:"omitempty"` PayloadContent interface{} `json:"content,omitempty" plist:"PayloadContent,omitempty"` } diff --git a/service.go b/service.go index e744b33d..a7d2658c 100644 --- a/service.go +++ b/service.go @@ -57,6 +57,7 @@ func (svc service) Enroll(ctx context.Context) (Profile, error) { profile.PayloadOrganization = "MicroMDM" profile.PayloadDisplayName = "Enrollment Profile" profile.PayloadDescription = "The server may alter your settings" + profile.PayloadScope = "System" scepContent := SCEPPayloadContent{ Challenge: svc.SCEPChallenge, @@ -73,11 +74,13 @@ func (svc service) Enroll(ctx context.Context) (Profile, error) { scepPayload.PayloadDisplayName = "SCEP" scepPayload.PayloadIdentifier = "com.github.micromdm.scep" scepPayload.PayloadContent = scepContent + scepPayload.PayloadScope = "System" mdmPayload := NewPayload("com.apple.mdm") mdmPayload.PayloadDescription = "Enrolls with the MDM server" mdmPayload.PayloadOrganization = "MicroMDM" mdmPayload.PayloadIdentifier = "com.github.micromdm.mdm" + mdmPayload.PayloadScope = "System" mdmPayloadContent := MDMPayloadContent{ Payload: *mdmPayload,