Manage users with the useradd command
Members
Add a user to the minion
CLI Example:
salt '*' user.add name <uid> <gid> <groups> <home> <shell>
Change the default group of the user
CLI Example:
salt '*' user.chgid foo 4376
Change the groups this user belongs to, add append to append the specified groups
CLI Example:
salt '*' user.chgroups foo wheel,root True
Change the home directory of the user, pass true for persist to copy files to the new home dir
CLI Example:
salt '*' user.chhome foo /home/users/foo True
Change the default shell of the user
CLI Example:
salt '*' user.chshell foo /bin/zsh
Change the uid for a named user
CLI Example:
salt '*' user.chuid foo 4376
Remove a user from the minion
CLI Example:
salt '*' user.delete name True True