Skip to main content
API resource reference for ContactGroupMembership, part of the Notification service. To create or change one, see Changing resources; to inspect, see Reading resources.
This resource is part of the v1alpha1 API and is subject to change. Fields and behavior may change in future releases.

Identity

Groupnotification.miloapis.com
Versionv1alpha1
KindContactGroupMembership
ScopeProject

Overview

A ContactGroupMembership links a Contact to a ContactGroup, adding that contact as a member of the group. Use it when you want a contact to receive notifications sent to a group: create one membership per contact-to-group pairing. The membership references both the target ContactGroup and the Contact being added, and the controller tracks the sync of that membership to the underlying notification provider.

Spec fields

FieldTypeRequiredDescription
spec.contactGroupRefObjectYesReference to the ContactGroup that the Contact is a member of.
spec.contactGroupRef.namestringYesName of the ContactGroup being referenced.
spec.contactGroupRef.namespacestringYesNamespace of the ContactGroup being referenced.
spec.contactRefObjectYesReference to the Contact that is a member of the ContactGroup.
spec.contactRef.namestringYesName of the Contact being referenced.
spec.contactRef.namespacestringYesNamespace of the Contact being referenced.

Status fields (read-only)

FieldTypeDescription
status.conditions[]ObjectLatest observations of the membership’s state. The standard Ready condition tracks membership creation and sync to the contact group membership provider.
status.providers[]ObjectPer-provider status for this membership, enabling multiple provider backends to be tracked simultaneously.
status.providerIDstringIdentifier returned by the underlying contact provider (e.g. Resend) when the membership is created in the associated audience. Deprecated: use status.providers instead.
status.usernamestringUsername of the user that owns the membership, populated by the controller from the referenced Contact’s subject.

Usage

apiVersion: notification.miloapis.com/v1alpha1
kind: ContactGroupMembership
metadata:
  name: alice-oncall
spec:
  contactGroupRef:
    name: oncall
    namespace: my-project
  contactRef:
    name: alice
    namespace: my-project
datumctl apply -f contactgroupmembership.yaml --project my-project
datumctl get contactgroupmemberships --project my-project
datumctl describe contactgroupmemberships alice-oncall --project my-project
Run datumctl explain contactgroupmemberships --recursive to see the full, live field tree for this resource.
Last modified on July 2, 2026