I found this Apple document on "what is an account" and the different types in macOS:
https://support.apple.com/guide/server/intro-to-accounts-apdcb06a828/mac
but there is nothing about service accounts (typically locked accounts not possible to login with it used by system services such as databases).
Is there a way to set up a service account in macOS? Or alternatively a way to configure up a user account in macOS that has the same characteristics as a service account found in Linux (like for example, /usr/sbin/nologin is used, see https://unix.stackexchange.com/questions/314725/what-is-the-difference-between-user-and-service-account).
Thank you!