Page header access groups

Hi,
I am looking for a way to add this header frontmatter from page admin advanced tab

access:
site:
login: true
group1: true
group2: true

as groups are array keys here, it is a problem to add enable disable a group …

I modified blueprints/docs.yaml

title: Docs
@extends’:
type: default
context: blueprints://pages

form:
fields:
tabs:
type: tabs
active: 1
fields:
advanced:
fields:
overrides:
fields:.
header.access.site.login:
type: toggle.
label: PLUGIN_ADMIN.SITE_ACCESS
help: PLUGIN_ADMIN.ACCESS_HELP
toggleable: true
config-default@: system.pages.access
default: true.
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

            header.access.site:                                             
              name: groups                                                  
              type: select                                                  
              multiple: true                                                
              toggleable: true                                              
              label: PLUGIN_ADMIN.GROUPS                                    
              help: ''                                                      
              data-options@: '\AdminAddonUserManager\Group::groupNames'        
              validate:                                                     
                type: commalist