Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_user_info.rst

raw
1 .. _ome_user_info_module:
2
3
4 ome_user_info -- Retrieves details of all accounts or a specific account on OpenManage Enterprise
5 =================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module retrieves the list and basic details of all accounts or details of a specific account on OpenManage Enterprise.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 account_id (optional, int, None)
31 Unique Id of the account.
32
33
34 system_query_options (optional, dict, None)
35 Options for filtering the output.
36
37
38 filter (optional, str, None)
39 Filter records for the supported values.
40
41
42
43 hostname (True, str, None)
44 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
45
46
47 username (False, str, None)
48 OpenManage Enterprise or OpenManage Enterprise Modular username.
49
50 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
51
52 Example: export OME\_USERNAME=username
53
54
55 password (False, str, None)
56 OpenManage Enterprise or OpenManage Enterprise Modular password.
57
58 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
59
60 Example: export OME\_PASSWORD=password
61
62
63 x_auth_token (False, str, None)
64 Authentication token.
65
66 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
67
68 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
69
70
71 port (optional, int, 443)
72 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
73
74
75 validate_certs (optional, bool, True)
76 If \ :literal:`false`\ , the SSL certificates will not be validated.
77
78 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
79
80 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
81
82
83 ca_path (optional, path, None)
84 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
85
86
87 timeout (optional, int, 30)
88 The socket level timeout in seconds.
89
90
91
92
93
94 Notes
95 -----
96
97 .. note::
98 - Run this module from a system that has direct access to Dell OpenManage Enterprise.
99 - This module supports \ :literal:`check\_mode`\ .
100
101
102
103
104 Examples
105 --------
106
107 .. code-block:: yaml+jinja
108
109
110 ---
111 - name: Retrieve basic details of all accounts
112 dellemc.openmanage.ome_user_info:
113 hostname: "192.168.0.1"
114 username: "username"
115 password: "password"
116 ca_path: "/path/to/ca_cert.pem"
117
118 - name: Retrieve details of a specific account identified by its account ID
119 dellemc.openmanage.ome_user_info:
120 hostname: "192.168.0.1"
121 username: "username"
122 password: "password"
123 ca_path: "/path/to/ca_cert.pem"
124 account_id: 1
125
126 - name: Get filtered user info based on user name
127 dellemc.openmanage.ome_user_info:
128 hostname: "192.168.0.1"
129 username: "username"
130 password: "password"
131 ca_path: "/path/to/ca_cert.pem"
132 system_query_options:
133 filter: "UserName eq 'test'"
134
135
136
137 Return Values
138 -------------
139
140 msg (on error, str, Unable to retrieve the account details.)
141 Over all status of fetching user facts.
142
143
144 user_info (success, dict, {'192.168.0.1': {'Id': '1814', 'UserTypeId': 1, 'DirectoryServiceId': 0, 'Description': 'user name description', 'Name': 'user_name', 'Password': None, 'UserName': 'user_name', 'RoleId': '10', 'Locked': False, 'IsBuiltin': True, 'Enabled': True}})
145 Details of the user.
146
147
148
149
150
151 Status
152 ------
153
154
155
156
157
158 Authors
159 ~~~~~~~
160
161 - Jagadeesh N V (@jagadeeshnv)
162