Role-based execution restriction is not subject to restriction.
Obtain messages.
REST API: GET /configuration/login-message
CLI: login_message_show
If nothing is displayed, no message is set.
Note:
If the CLI execution does not require authentication or it performs session authentication, nothing is displayed even if a message is set.