Skip to content

Users

Enable or disable Home Assistant user accounts on a schedule or condition: house-sitter logins, rental-guest accounts, kids’ accounts after bedtime.

You cannot lock yourself out: disable_user refuses owner accounts and system-generated users, so no automation, prompt, or typo can take the owner’s access away.

Find user_id values with the MCP get_registry tool (users) from the terminal, or in Settings → People.

Create user

brain.create_user

Create a Home Assistant user account, optionally with a local username/password login (they must be provided together; password minimum 8 characters). Returns the new user_id as response data.

FieldTypeRequiredDescription
nametextyesDisplay name of the new user.
usernametextnoLogin username. Requires password.
passwordtextnoLogin password (min 8 characters). Requires username.
adminbooleannoGive the user admin rights (default off).
service: brain.create_user
data:
name: Babysitter
username: babysitter
password: "correct-horse-battery"

🗣️ “Set up a login for the babysitter — no admin rights.”

Delete user

brain.delete_user

Delete one or more Home Assistant user accounts and their credentials. Owner accounts and system-generated users are protected and cannot be deleted.

FieldTypeRequiredDescription
user_idtext (list)yesIDs of the users to delete.
service: brain.delete_user
data:
user_id:
- 1234567890abcdef

🗣️ “The house sitter’s gone — delete their account entirely.”

Enable user

brain.enable_user

Re-enable one or more disabled Home Assistant user accounts.

FieldTypeRequiredDescription
user_idtext (list)yesIDs of the users to enable.
service: brain.enable_user
data:
user_id:
- 1234567890abcdef

🗣️ “Re-enable the babysitter’s account.”

Disable user

brain.disable_user

Disable one or more Home Assistant user accounts. Owner accounts and system-generated users are protected and cannot be disabled.

FieldTypeRequiredDescription
user_idtext (list)yesIDs of the users to disable.
service: brain.disable_user
data:
user_id:
- 1234567890abcdef

🗣️ “Disable the account we made for the house sitter.”