Skip to content

Commit

Permalink
fix #34038 (#34042)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjorge authored and Nicole Thomas committed Jun 15, 2016
1 parent f546a00 commit 13b660c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions salt/modules/solaris_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,16 @@ def list_groups(name):
return salt.utils.get_group_list(name)


def list_users():
'''
Return a list of all users
CLI Example:
.. code-block:: bash
salt '*' user.list_users
'''
return sorted([user.pw_name for user in pwd.getpwall()])


def rename(name, new_name):
'''
Change the username for a named user
Expand Down

0 comments on commit 13b660c

Please sign in to comment.