Agent Registration only worked once

Ok i just tested my theory, and it worked!

i changed user automation back to Automation secret for machine accounts and i changed the role of my own registration user to Agent registration user and tried again and it worked.

PS C:\Program Files (x86)\checkmk\service> .\cmk-agent-ctl.exe status
Version: 2.2.0p16
Agent socket: operational
IP allowlist: any


Connection: 192.168.190.16/pd
        UUID: 28de5292-20c3-44d2-a78e-7dee7152a36d
        Local:
                Connection mode: pull-agent
                Connecting to receiver port: 8000
                Certificate issuer: Site 'pd' agent signing CA
                Certificate validity: Tue, 20 Feb 2024 11:51:25 +0000 - Tue, 20 Feb 2029 11:51:25 +0000
        Remote:
                Connection mode: pull-agent
                Hostname: PD_PD-RD