DCD gets "401 Unauthorized" for url http://localhost:5001/mysite/check_mk/api/1.0/domain-types/host_config/collections/all

Yes, the automation user has role “Administrator”.

image