I have configured LDAP (AD) users via command_line authentication. It is working fine, however newly logged in users are in Administrators (system-admin) group by default.
Is it the only option by design? Or there is a way to assign Users (system-users) group by default?
+1 I have the same question.
I’m thinking perhaps this can be set by the user metadata but there doesn’t seem to be any existing config key for that.
For now I just hadrcoded default group. I have no programming skills, so it is far from elegant and definitely would vanish on any software update.
So here is what i have changed (i am using venv installation):
% diff env/lib/python3.7/site-packages/homeassistant/auth/__init__.py.old env/lib/python3.7/site-packages/homeassistant/auth/__init__.py
16a17
> from .const import GROUP_ID_USER
258c259
< group_ids=[GROUP_ID_ADMIN],
---
> group_ids=[GROUP_ID_USER],
Hey I want to concur with you here. It seems weird that they would default to admins vs a user and then upgrade to admin as necessary. I made the above change and it worked. Perhaps we should put in a pull request to have this default behavior modified?