setting up macOS service accounts?

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!

On macOS this concept is known as a role account. You can set one up using sysadminctl with the -roleAccount option.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

setting up macOS service accounts?
 
 
Q