def get_users(self):
users = {}<EOL>_JUNOS_CLASS_CISCO_PRIVILEGE_LEVEL_MAP = {<EOL>"<STR_LIT>": <NUM_LIT:15>,<EOL>"<STR_LIT>": <NUM_LIT:15>,<EOL>"<STR_LIT>": <NUM_LIT:5>,<EOL>"<STR_LIT>": <NUM_LIT:1>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>}<EOL>_DEFAULT_USER_DETAILS = {"<STR_LIT>": <NUM_LIT:0>, "<STR_LIT:password>": "<STR_LIT>", "<STR_LIT>": []}<EOL>users_table = junos_views.junos_users_table(self.device)<EOL>users_table.get()<EOL>users_items = users_table.items()<EOL>root_user = self._get_root()<EOL>for user_entry in users_items:<EOL><INDENT>username = user_entry[<NUM_LIT:0>]<EOL>user_details = _DEFAULT_USER_DETAILS.copy()<EOL>user_details.update({d[<NUM_LIT:0>]: d[<NUM_LIT:1>] for d in user_entry[<NUM_LIT:1>] if d[<NUM_LIT:1>]})<EOL>user_class = user_details.pop("<STR_LIT:class>", "<STR_LIT>")<EOL>user_details = {<EOL>key: py23_compat.text_type(user_details[key])<EOL>for key in user_details.keys()<EOL>}<EOL>level = _JUNOS_CLASS_CISCO_PRIVILEGE_LEVEL_MAP.get(user_class, <NUM_LIT:0>)<EOL>user_details.update({"<STR_LIT>": level})<EOL>user_details["<STR_LIT>"] = [<EOL>user_details.pop(key)<EOL>for key in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>if user_details.get(key, "<STR_LIT>")<EOL>]<EOL>users[username] = user_details<EOL><DEDENT>users.update(root_user)<EOL>return users<EOL>
Return the configuration of the users.