diff --git a/authentik/core/api/groups.py b/authentik/core/api/groups.py index 94d932e1f..961633037 100644 --- a/authentik/core/api/groups.py +++ b/authentik/core/api/groups.py @@ -49,7 +49,7 @@ class GroupSerializer(ModelSerializer): users_obj = ListSerializer( child=GroupMemberSerializer(), read_only=True, source="users", required=False ) - parent_name = CharField(source="parent.name", read_only=True) + parent_name = CharField(source="parent.name", read_only=True, allow_null=True) num_pk = IntegerField(read_only=True) diff --git a/schema.yml b/schema.yml index bc53d9eb9..ed7f520bd 100644 --- a/schema.yml +++ b/schema.yml @@ -30498,6 +30498,7 @@ components: parent_name: type: string readOnly: true + nullable: true users: type: array items: