Method: Inspec::Resources::WindowsUser#identity
- Defined in:
- lib/resources/users.rb
#identity(username) ⇒ Object
565 566 567 568 569 570 571 |
# File 'lib/resources/users.rb', line 565 def identity(username) # TODO: we look for local users only at this point name, _domain = parse_windows_account(username) return if collect_user_details.nil? res = collect_user_details.select { |user| user[:username] == name } res[0] if !res.empty? end |