dellemc.openmanage.ome_user_info (2.1.5) — module

Retrieves details of all accounts or a specific account on OpenManage Enterprise.

| "added in version" 2.9.10 of dellemc.openmanage"

Authors: Jagadeesh N V(@jagadeeshnv)

preview | supported by community

Install collection

Install with ansible-galaxy collection install dellemc.openmanage:==2.1.5


Add to requirements.yml

  collections:
    - name: dellemc.openmanage
      version: 2.1.5

Description

This module retrieves the list and basic details of all accounts or details of a specific account on OpenManage Enterprise.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Retrieve basic details of all accounts.
  dellemc.openmanage.ome_user_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve details of a specific account identified by its account ID.
  dellemc.openmanage.ome_user_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    account_id: 1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get filtered user info based on user name.
  dellemc.openmanage.ome_user_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    system_query_options:
      filter: "UserName eq 'test'"

Inputs

    
port:
    default: 443
    description: Target HTTPS port.
    type: int

hostname:
    description: Target IP address or hostname.
    required: true
    type: str

password:
    description: Target user password.
    required: true
    type: str

username:
    description: Target username.
    required: true
    type: str

account_id:
    description: Unique Id of the account
    type: int

system_query_options:
    description: Options for filtering the output
    suboptions:
      filter:
        description: Filter records for the supported values.
        type: str
    type: dict

Outputs

msg:
  description: Over all status of fetching user facts.
  returned: on error
  sample: Unable to retrieve the account details.
  type: str
user_info:
  description: Details of the user.
  returned: success
  sample:
    192.168.0.1:
      Description: user name description
      DirectoryServiceId: 0
      Enabled: true
      Id: '1814'
      IsBuiltin: true
      Locked: false
      Name: user_name
      Password: null
      RoleId: '10'
      UserName: user_name
      UserTypeId: 1
  type: dict