code: def cli(env, identifier, keys, permissions, hardware, virtual, logins, events):
      
  
      mgr = SoftLayer.UserManager(env.client)
      user_id = helpers.resolve_id(mgr.resolve_ids, identifier, 'username')
      object_mask = "userStatus[name], parent[id, username], apiAuthenticationKeys[authenticationKey], "\
                    "unsuccessfulLogins, successfulLogins"
  
      user = mgr.get_user(user_id, object_mask)
      env.fout(basic_info(user, keys))
  
      if permissions:
          perms = mgr.get_user_permissions(user_id)
          env.fout(print_permissions(perms))
      if hardware:
          mask = "id, hardware, dedicatedHosts"
          access = mgr.get_user(user_id, mask)
          env.fout(print_dedicated_access(access.get('dedicatedHosts', [])))
          env.fout(print_access(access.get('hardware', []), 'Hardware'))
      if virtual:
          mask = "id, virtualGuests"
          access = mgr.get_user(user_id, mask)
          env.fout(print_access(access.get('virtualGuests', []), 'Virtual Guests'))
      if logins:
          login_log = mgr.get_logins(user_id)
          env.fout(print_logins(login_log))
      if events:
          event_log = mgr.get_events(user_id)
          env.fout(print_events(event_log))
docs: User details.