Module Expr Str ImportFrom alias ImportFrom alias Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler body ImportFrom alias identifier Import alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Expr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore IfExp NameLoad Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If NameLoad body Assign SubscriptStore NameLoad Index Str Num orelse Assign SubscriptStore NameLoad Index Str Num If CompareIsNot NameLoad NameLoad body If NameLoad body AugAssignBitOr SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse AugAssignBitXor SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If NameLoad body AugAssignBitXor SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If NameLoad body AugAssignBitOr SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse AugAssignBitXor SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If NameLoad body AugAssignBitOr SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse AugAssignBitXor SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If NameLoad body If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad If NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad If CompareEq NameLoad Num body Pass orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Return CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Return CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Return NameLoad If UnaryOpNot Call NameLoad keyword NameLoad keyword NameLoad body Return NameLoad If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str NameLoad If CompareNotEq Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Return CompareEq SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad If CompareEq NameLoad Call NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Str If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Return CompareEq Call NameLoad BinOpSub NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass If NameLoad body Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str UnaryOpNot Call NameLoad BinOpBitAnd SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Num If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad If CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad If CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad If CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad If CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call SubscriptLoad NameLoad Index Str Str Call AttributeLoad Str attr NameLoad Str Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad TryExcept body Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Return NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIn Str NameLoad UnaryOpNot NameLoad body Return SubscriptLoad NameLoad Index Str Assign NameStore ListLoad For NameStore Call SubscriptLoad NameLoad Index Str body Assign NameStore Dict Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore NameLoad TryExcept body While BoolOpOr NameLoad NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr keyword NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If UnaryOpNot CompareEq NameLoad Num body Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str Str Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return CompareEq Call AttributeLoad Call NameLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad If UnaryOpNot NameLoad body Return NameLoad Return NameLoad decorator_list
N/A N/A 
Module for managing Windows Users

.. important::
    If you feel that Salt should be using this module to manage users on a
    minion, and it is using a different module (or gives an error similar to
    *'user.info' is not available*), see :ref:`here
    <module-provider-override>`.

:depends:
        - pywintypes
        - win32api
        - win32net
        - win32netcon
        - win32profile
        - win32security
        - win32ts

.. note::
    This currently only works with local user accounts, not domain accounts
 __future__ absolute_import datetime datetime N/A time N/A N/A shlex quote _cmd_quote N/A N/A N/A pipes quote _cmd_quote N/A salt.utils salt.ext.six string_types salt.exceptions CommandExecutionError N/A logging N/A log N/A N/A logging getLogger __name__ N/A N/A N/A pywintypes N/A wmi N/A pythoncom N/A win32api N/A win32con N/A win32net N/A win32netcon N/A win32profile N/A win32security N/A win32ts N/A HAS_WIN32NET_MODS True N/A N/A N/A ImportError N/A N/A HAS_WIN32NET_MODS False N/A __virtualname__ user __virtual__ N/A N/A N/A N/A N/A 
    Set the user module if the kernel is Windows
     N/A N/A HAS_WIN32NET_MODS N/A N/A N/A salt utils is_windows N/A N/A __virtualname__ N/A N/A False Module win_useradd: module has failed dependencies or is not on Windows client N/A add N/A N/A name password fullname description groups home homedrive profile logonscript N/A None False None None None None None None N/A N/A 
    Add a user to the minion.

    :param str name:
        User name

    :param str password:
        User's password in plain text.

    :param str fullname:
        The user's full name.

    :param str description:
        A brief description of the user account.

    :param list groups:
        A list of groups to add the user to.

    :param str home:
        The path to the user's home directory.

    :param str homedrive:
        The drive letter to assign to the home directory. Must be the Drive Letter
        followed by a colon. ie: U:

    :param str profile:
        An explicit path to a profile. Can be a UNC or a folder on the system. If
        left blank, windows uses it's default profile directory.

    :param str logonscript:
        Path to a login script to run when the user logs on.

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.add name password
     N/A user_info N/A N/A name N/A N/A N/A user_info N/A name name N/A N/A False N/A N/A user_info N/A password password N/A N/A user_info N/A priv N/A win32netcon USER_PRIV_USER N/A N/A user_info N/A home_dir home N/A N/A user_info N/A comment description N/A N/A user_info N/A flags N/A win32netcon UF_SCRIPT N/A N/A user_info N/A script_path logonscript N/A N/A N/A N/A N/A win32net NetUserAdd None 1 user_info N/A N/A N/A N/A win32net error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A Failed to create user {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A N/A update name name homedrive homedrive profile profile fullname fullname N/A ret N/A groups N/A chgroups name groups True N/A ret N/A update N/A N/A name password fullname description home homedrive logonscript profile expiration_date expired account_disabled unlock_account password_never_expires disallow_change_password N/A None None None None None None None None None None None None None N/A N/A 
    Updates settings for the windows user. Name is the only required parameter.
    Settings will only be changed if the parameter is passed a value.

    .. versionadded:: 2015.8.0

    :param str name:
        The user name to update.

    :param str password:
        New user password in plain text.

    :param str fullname:
        The user's full name.

    :param str description:
        A brief description of the user account.

    :param str home:
        The path to the user's home directory.

    :param str homedrive:
        The drive letter to assign to the home directory. Must be the Drive Letter
        followed by a colon. ie: U:

    :param str logonscript:
        The path to the logon script.

    :param str profile:
        The path to the user's profile directory.

    :param date expiration_date: The date and time when the account expires. Can
        be a valid date/time string. To set to never expire pass the string 'Never'.

    :param bool expired: Pass `True` to expire the account. The user will be
        prompted to change their password at the next logon. Pass `False` to mark
        the account as 'not expired'. You can't use this to negate the expiration if
        the expiration was caused by the account expiring. You'll have to change
        the `expiration_date` as well.

    :param bool account_disabled: True disables the account. False enables the
        account.

    :param bool unlock_account: True unlocks a locked user account. False is
        ignored.

    :param bool password_never_expires: True sets the password to never expire.
        False allows the password to expire.

    :param bool disallow_change_password: True blocks the user from changing
        the password. False allows the user to change the password.

    :return: True if successful. False is unsuccessful.

    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.update bob password=secret profile=C:\Users\Bob
                 home=\\server\homeshare\bob homedrive=U:
     N/A N/A N/A user_info N/A N/A win32net NetUserGetInfo None name 4 N/A N/A N/A N/A win32net error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A Failed to update user {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A password N/A N/A N/A user_info N/A password password N/A home N/A N/A N/A user_info N/A home_dir home N/A homedrive N/A N/A N/A user_info N/A home_dir_drive homedrive N/A description N/A N/A N/A user_info N/A comment description N/A logonscript N/A N/A N/A user_info N/A script_path logonscript N/A fullname N/A N/A N/A user_info N/A full_name fullname N/A profile N/A N/A N/A user_info N/A profile profile N/A expiration_date N/A N/A N/A expiration_date Never N/A N/A N/A user_info N/A acct_expires N/A win32netcon TIMEQ_FOREVER N/A N/A N/A N/A dt_obj N/A N/A N/A salt utils date_cast expiration_date N/A N/A N/A N/A ValueError RuntimeError N/A N/A N/A N/A Invalid Date/Time Format: {0} format expiration_date N/A N/A user_info N/A acct_expires N/A N/A time mktime N/A N/A dt_obj timetuple N/A N/A expired None N/A N/A expired N/A N/A N/A user_info N/A password_expired 1 N/A N/A N/A user_info N/A password_expired 0 N/A N/A account_disabled None N/A N/A account_disabled N/A N/A N/A user_info N/A flags N/A win32netcon UF_ACCOUNTDISABLE N/A N/A N/A user_info N/A flags N/A win32netcon UF_ACCOUNTDISABLE N/A N/A unlock_account None N/A N/A unlock_account N/A N/A N/A user_info N/A flags N/A win32netcon UF_LOCKOUT N/A N/A password_never_expires None N/A N/A password_never_expires N/A N/A N/A user_info N/A flags N/A win32netcon UF_DONT_EXPIRE_PASSWD N/A N/A N/A user_info N/A flags N/A win32netcon UF_DONT_EXPIRE_PASSWD N/A N/A disallow_change_password None N/A N/A disallow_change_password N/A N/A N/A user_info N/A flags N/A win32netcon UF_PASSWD_CANT_CHANGE N/A N/A N/A user_info N/A flags N/A win32netcon UF_PASSWD_CANT_CHANGE N/A N/A N/A N/A N/A win32net NetUserSetInfo None name 4 user_info N/A N/A N/A N/A win32net error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A Failed to update user {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A True N/A delete N/A N/A name purge force N/A False False N/A N/A 
    Remove a user from the minion

    :param str name:
        The name of the user to delete

    :param bool purge:
        Boolean value indicating that the user profile should also be removed when
        the user account is deleted. If set to True the profile will be removed.

    :param bool force:
        Boolean value indicating that the user account should be deleted even if the
        user is logged in. True will log the user out and delete user.

    :return:
        True if successful
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.delete name
     N/A N/A N/A user_info N/A N/A win32net NetUserGetInfo None name 4 N/A N/A N/A N/A win32net error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A User not found: {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A N/A N/A sess_list N/A N/A win32ts WTSEnumerateSessions N/A N/A N/A N/A win32ts error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error No logged in users found N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A logged_in False N/A session_id None N/A sess sess_list N/A N/A N/A N/A N/A win32ts WTSQuerySessionInformation None N/A sess N/A SessionId N/A win32ts WTSUserName name N/A N/A session_id N/A sess N/A SessionId N/A logged_in True N/A logged_in N/A N/A force N/A N/A N/A N/A N/A N/A win32ts WTSLogoffSession N/A win32ts WTS_CURRENT_SERVER_HANDLE session_id True N/A N/A N/A N/A win32ts error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A User not found: {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A N/A N/A N/A log error N/A N/A User {0} is currently logged in. format name N/A False N/A purge N/A N/A N/A N/A sid N/A getUserSid name N/A N/A N/A win32profile DeleteProfile sid N/A N/A N/A N/A pywintypes error N/A exc N/A N/A N/A number context message exc N/A N/A number 2 N/A N/A N/A N/A N/A N/A log error N/A N/A Failed to remove profile for {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A N/A N/A N/A N/A win32net NetUserDel None name N/A N/A N/A N/A win32net error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error N/A N/A Failed to delete user {0} format name N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A True N/A getUserSid N/A N/A username N/A N/A N/A 
    Get the Security ID for the user

    :param str username:
        user name for which to look up the SID

    :return:
        Returns the user SID
    :rtype: str

    CLI Example:

    .. code-block:: bash

        salt '*' user.getUserSid jsnuffy
     N/A domain N/A N/A win32api GetComputerName N/A N/A N/A N/A username find \ -1 N/A N/A domain N/A N/A N/A username split \ N/A 0 N/A username N/A N/A N/A username split \ N/A -1 N/A domain N/A N/A domain upper N/A N/A N/A win32security ConvertSidToStringSid N/A N/A N/A win32security LookupAccountName None N/A N/A domain \ username N/A 0 N/A setpassword N/A N/A name password N/A N/A N/A 
    Set the user's password

    :param str name:
        user name for which to set the password

    :param str password:
        the new password

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.setpassword jsnuffy sup3rs3cr3t
     N/A N/A update name name password password N/A addgroup N/A N/A name group N/A N/A N/A 
    Add user to a group

    :param str name:
        user name to add to the group

    :param str group:
        name of the group to which to add the user

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.addgroup jsnuffy 'Power Users'
     N/A name N/A _cmd_quote name N/A group N/A N/A N/A N/A N/A _cmd_quote group lstrip ' rstrip ' N/A user N/A info name N/A N/A user N/A N/A False N/A N/A group N/A user N/A groups N/A N/A True N/A cmd N/A N/A net localgroup "{0}" {1} /add format group name N/A ret N/A N/A __salt__ N/A cmd.run_all cmd python_shell True N/A N/A N/A ret N/A retcode 0 N/A removegroup N/A N/A name group N/A N/A N/A 
    Remove user from a group

    :param str name:
        user name to remove from the group

    :param str group:
        name of the group from which to remove the user

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.removegroup jsnuffy 'Power Users'
     N/A name N/A _cmd_quote name N/A group N/A N/A N/A N/A N/A _cmd_quote group lstrip ' rstrip ' N/A user N/A info name N/A N/A user N/A N/A False N/A N/A group N/A user N/A groups N/A N/A True N/A cmd N/A N/A net localgroup "{0}" {1} /delete format group name N/A ret N/A N/A __salt__ N/A cmd.run_all cmd python_shell True N/A N/A N/A ret N/A retcode 0 N/A chhome N/A N/A name home persist N/A False N/A N/A 
    Change the home directory of the user, pass True for persist to move files
    to the new home directory if the old home directory exist.

    :param str name:
        name of the user whose home directory you wish to change

    :param str home:
        new location of the home directory

    :param bool persist:
        True to move the contents of the existing home directory to the new location

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.chhome foo \\fileserver\home\foo True
     N/A pre_info N/A info name N/A N/A pre_info N/A N/A False N/A N/A home N/A pre_info N/A home N/A N/A True N/A N/A N/A update name name home home N/A N/A False N/A N/A persist N/A home None N/A N/A pre_info N/A home None N/A N/A cmd N/A N/A move /Y {0} {1} format N/A pre_info N/A home home N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd python_shell False 0 N/A N/A N/A N/A log debug Failed to move the contents of the Home Directory N/A post_info N/A info name N/A N/A N/A post_info N/A home N/A pre_info N/A home N/A N/A N/A N/A post_info N/A home home N/A False N/A chprofile N/A N/A name profile N/A N/A N/A 
    Change the profile directory of the user

    :param str name:
        name of the user whose profile you wish to change

    :param str profile:
        new location of the profile

    :return: True if successful. False is unsuccessful.

    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.chprofile foo \\fileserver\profiles\foo
     N/A N/A update name name profile profile N/A chfullname N/A N/A name fullname N/A N/A N/A 
    Change the full name of the user

    :param str name:
        user name for which to change the full name

    :param str fullname:
        the new value for the full name

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.chfullname user 'First Last'
     N/A N/A update name name fullname fullname N/A chgroups N/A N/A name groups append N/A True N/A N/A 
    Change the groups this user belongs to, add append=False to make the user a
    member of only the specified groups

    :param str name:
        user name for which to change groups

    :param groups:
        a single group or a list of groups to assign to the user
    :type groups: list, str

    :param bool append:
        True adds the passed groups to the user's current groups
        False sets the user's groups to the passed groups only

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.chgroups jsnuffy Administrators,Users True
     N/A N/A isinstance groups string_types N/A N/A groups N/A N/A groups split , N/A groups N/A N/A N/A x strip  * N/A x groups N/A ugrps N/A set N/A list_groups name N/A N/A ugrps N/A set groups N/A N/A True N/A name N/A _cmd_quote name N/A N/A append N/A N/A group ugrps N/A N/A group N/A N/A N/A N/A N/A _cmd_quote group lstrip ' rstrip ' N/A N/A group groups N/A N/A cmd N/A N/A net localgroup "{0}" {1} /delete format group name N/A N/A N/A __salt__ N/A cmd.run_all cmd python_shell True N/A group groups N/A N/A N/A group ugrps N/A N/A N/A group N/A N/A N/A N/A N/A _cmd_quote group lstrip ' rstrip ' N/A cmd N/A N/A net localgroup "{0}" {1} /add format group name N/A N/A N/A __salt__ N/A cmd.run_all cmd python_shell True N/A agrps N/A set N/A list_groups name N/A N/A N/A len N/A ugrps agrps 0 N/A info N/A N/A name N/A N/A N/A 
    Return user information

    :param str name:
        Username for which to display information

    :returns:
        A dictionary containing user information
            - fullname
            - username
            - SID
            - passwd (will always return None)
            - comment (same as description, left here for backwards compatibility)
            - description
            - active
            - logonscript
            - profile
            - home
            - homedrive
            - groups
            - password_changed
            - successful_logon_attempts
            - failed_logon_attempts
            - last_logon
            - account_disabled
            - account_locked
            - password_never_expires
            - disallow_change_password
            - gid
    :rtype: dict

    CLI Example:

    .. code-block:: bash

        salt '*' user.info jsnuffy
     N/A ret N/A N/A items N/A N/A N/A N/A items N/A N/A win32net NetUserGetInfo None name 4 N/A N/A N/A N/A win32net error N/A N/A N/A items N/A N/A groups N/A N/A N/A N/A groups N/A N/A win32net NetUserGetLocalGroups None name N/A N/A N/A N/A win32net error N/A N/A N/A N/A ret N/A fullname N/A items N/A full_name N/A N/A ret N/A name N/A items N/A name N/A N/A ret N/A uid N/A N/A win32security ConvertSidToStringSid N/A items N/A user_sid N/A N/A ret N/A passwd N/A items N/A password N/A N/A ret N/A comment N/A items N/A comment N/A N/A ret N/A description N/A items N/A comment N/A N/A ret N/A active N/A N/A bool N/A N/A items N/A flags N/A win32netcon UF_ACCOUNTDISABLE N/A N/A ret N/A logonscript N/A items N/A script_path N/A N/A ret N/A profile N/A items N/A profile N/A N/A ret N/A failed_logon_attempts N/A items N/A bad_pw_count N/A N/A ret N/A successful_logon_attempts N/A items N/A num_logons N/A secs N/A N/A N/A time mktime N/A N/A N/A N/A datetime now timetuple N/A items N/A password_age N/A N/A ret N/A password_changed N/A N/A N/A N/A datetime fromtimestamp secs strftime %Y-%m-%d %H:%M:%S N/A N/A N/A items N/A last_logon 0 N/A N/A N/A ret N/A last_logon Never N/A N/A N/A ret N/A last_logon N/A N/A N/A N/A datetime fromtimestamp N/A items N/A last_logon strftime %Y-%m-%d %H:%M:%S N/A N/A ret N/A expiration_date N/A N/A N/A N/A datetime fromtimestamp N/A items N/A acct_expires strftime %Y-%m-%d %H:%M:%S N/A N/A ret N/A expired N/A N/A items N/A password_expired 1 N/A N/A N/A ret N/A profile N/A N/A N/A ret N/A profile N/A _get_userprofile_from_registry name N/A ret N/A uid N/A N/A ret N/A home N/A items N/A home_dir N/A N/A ret N/A homedrive N/A items N/A home_dir_drive N/A N/A N/A ret N/A home N/A N/A N/A ret N/A home N/A ret N/A profile N/A N/A ret N/A groups groups N/A N/A N/A N/A items N/A flags N/A win32netcon UF_DONT_EXPIRE_PASSWD 0 N/A N/A N/A ret N/A password_never_expires False N/A N/A N/A ret N/A password_never_expires True N/A N/A N/A N/A items N/A flags N/A win32netcon UF_ACCOUNTDISABLE 0 N/A N/A N/A ret N/A account_disabled False N/A N/A N/A ret N/A account_disabled True N/A N/A N/A N/A items N/A flags N/A win32netcon UF_LOCKOUT 0 N/A N/A N/A ret N/A account_locked False N/A N/A N/A ret N/A account_locked True N/A N/A N/A N/A items N/A flags N/A win32netcon UF_PASSWD_CANT_CHANGE 0 N/A N/A N/A ret N/A disallow_change_password False N/A N/A N/A ret N/A disallow_change_password True N/A N/A ret N/A gid N/A ret N/A N/A False N/A _get_userprofile_from_registry N/A N/A user sid N/A N/A N/A 
    In case net user doesn't return the userprofile
    we can get it from the registry
     N/A profile_dir N/A N/A N/A __salt__ N/A reg.read_value HKEY_LOCAL_MACHINE N/A N/A SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\{0} format sid ProfileImagePath N/A vdata N/A N/A N/A log debug N/A N/A user {0} with sid={2} profile is located at "{1}" format user profile_dir sid N/A profile_dir N/A list_groups N/A N/A name N/A N/A N/A 
    Return a list of groups the named user belongs to

    :param str name:
        user name for which to list groups

    :return:
        list of groups to which the user belongs
    :rtype: list

    CLI Example:

    .. code-block:: bash

        salt '*' user.list_groups foo
     N/A ugrp N/A set N/A N/A N/A user N/A N/A info name N/A groups N/A N/A N/A KeyError N/A N/A False N/A group user N/A N/A N/A N/A ugrp add N/A N/A group strip  * N/A N/A sorted N/A list ugrp N/A getent N/A N/A refresh N/A False N/A N/A 
    Return the list of all info for all users

    :param bool refresh:
        Refresh the cached user information. Default is False. Useful when used from
        within a state function.

    :return:
        A dictionary containing information about all users on the system
    :rtype: dict

    CLI Example:

    .. code-block:: bash

        salt '*' user.getent
     N/A N/A N/A user.getent __context__ N/A refresh N/A N/A N/A __context__ N/A user.getent N/A ret N/A N/A user N/A N/A __salt__ N/A user.list_users N/A N/A stuff N/A N/A user_info N/A N/A __salt__ N/A user.info user N/A N/A stuff N/A gid N/A N/A stuff N/A groups N/A user_info N/A groups N/A N/A stuff N/A home N/A user_info N/A home N/A N/A stuff N/A name N/A user_info N/A name N/A N/A stuff N/A passwd N/A user_info N/A passwd N/A N/A stuff N/A shell N/A N/A stuff N/A uid N/A user_info N/A uid N/A N/A N/A ret append stuff N/A N/A __context__ N/A user.getent ret N/A ret N/A list_users N/A N/A N/A N/A N/A 
    Return a list of users on Windows

    :return:
        list of users on the system
    :rtype: list

    CLI Example:

    .. code-block:: bash

        salt '*' user.list_users
     N/A res 0 N/A users N/A N/A user_list N/A N/A dowhile True N/A N/A N/A N/A res dowhile N/A N/A dowhile False N/A N/A users _ res N/A N/A win32net NetUserEnum None 0 N/A win32netcon FILTER_NORMAL_ACCOUNT res N/A win32netcon MAX_PREFERRED_LENGTH N/A user users N/A N/A N/A N/A user_list append N/A user N/A name N/A user_list N/A N/A N/A N/A win32net error N/A N/A N/A rename N/A N/A name new_name N/A N/A N/A 
    Change the username for a named user

    :param str name:
        user name to change

    :param str new_name:
        the new name for the current user

    :return:
        True if successful. False is unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' user.rename jsnuffy jshmoe
     N/A current_info N/A info name N/A N/A current_info N/A N/A N/A CommandExecutionError N/A N/A User '{0}' does not exist format name N/A new_info N/A info new_name N/A new_info N/A N/A N/A CommandExecutionError N/A N/A User '{0}' already exists format new_name N/A N/A N/A pythoncom CoInitialize N/A c N/A N/A wmi WMI find_classes 0 N/A N/A N/A user N/A N/A N/A c Win32_UserAccount Name name N/A 0 N/A N/A N/A IndexError N/A N/A N/A CommandExecutionError N/A N/A User '{0}' does not exist format name N/A result N/A N/A N/A user Rename new_name N/A 0 N/A N/A N/A result 0 N/A N/A error_dict N/A 0 1 2 3 4 5 6 7 8 9 10 Success Instance not found Instance required Invalid parameter User not found Domain not found Operation is allowed only on the primary domain controller of the domain Operation is not allowed on the last administrative account Operation is not allowed on specified special groups: user, admin, local, or guest Other API error Internal error N/A N/A CommandExecutionError N/A N/A There was an error renaming '{0}' to '{1}'. Error: {2} format name new_name N/A error_dict N/A result N/A N/A N/A N/A N/A info new_name get name new_name N/A current N/A N/A sam N/A False N/A N/A 
    Get the username that salt-minion is running under. If salt-minion is
    running as a service it should return the Local System account. If salt is
    running from a command prompt it should return the username that started the
    command prompt.

    .. versionadded:: 2015.5.6

    :param bool sam:
        False returns just the username without any domain notation. True
        returns the domain with the username in the SAM format. Ie:

        ``domain\username``

    :return:
        Returns False if the username cannot be returned. Otherwise returns the
        username.
    :rtype: bool str

    CLI Example:

    .. code-block:: bash

        salt '*' user.current
     N/A N/A N/A sam N/A N/A user_name N/A N/A win32api GetUserNameEx N/A win32con NameSamCompatible N/A N/A user_name N/A N/A win32api GetUserName N/A N/A N/A N/A pywintypes error N/A exc N/A N/A N/A number context message exc N/A N/A N/A log error Failed to get current user N/A N/A N/A log error N/A N/A nbr: {0} format number N/A N/A N/A log error N/A N/A ctx: {0} format context N/A N/A N/A log error N/A N/A msg: {0} format message N/A False N/A N/A user_name N/A N/A False N/A user_name N/A