Hope this works and helps:
TASK [Print user_find] *****************************************************************************************************************************************
ok: [localhost] => {
“msg”: {
“cache_control”: “no-cache, private”,
“changed”: false,
“connection”: “close”,
“content_security_policy”: “frame-ancestors ‘none’”,
“content_type”: “application/json; charset=utf-8”,
“cookies”: {},
“cookies_string”: “”,
“date”: “Fri, 13 Nov 2020 15:41:31 GMT”,
“elapsed”: 2,
“failed”: false,
“json”: {
“error”: null,
“id”: null,
“principal”: “admin@EXAMPLE.COM”,
“result”: {
“count”: 1822,
“result”: [
{
“dn”: “uid=user1,cn=users,cn=accounts,dc=example,dc=com”,
“gidnumber”: [
“10000”
],
“givenname”: [
“User1”
],
“homedirectory”: [
“/home/user1”
],
“krbcanonicalname”: [
“user1@EXAMPLE.COM”
],
“krbprincipalname”: [
“user1@EXAMPLE.COM”
],
“loginshell”: [
“/bin/bash”
],
“mail”: [
“user1@example.com”
],
“nsaccountlock”: false,
“sn”: [
“User”
],
“telephonenumber”: [
“(555) 555-5555”
],
“uid”: [
“user1”
],
“uidnumber”: [
“1111”
]
},
{
“dn”: “uid=user2,cn=users,cn=accounts,dc=example,dc=com”,
“gidnumber”: [
“10000”
],
“givenname”: [
“User2”
],
“homedirectory”: [
“/home/user2”
],
“krbcanonicalname”: [
“user2@EXAMPLE.COM”
],
“krbprincipalname”: [
“user2@EXAMPLE.COM”
],
“loginshell”: [
“/bin/bash”
],
“mail”: [
“user2@example.com”
],
“nsaccountlock”: false,
“sn”: [
“User”
],
“telephonenumber”: [
“(555)555-5556”
],
“uid”: [
“user2”
],
“uidnumber”: [
“2222”
]
},
}
],
“summary”: “1822 users matched”,
“truncated”: false
},
“version”: “4.6.8”
},
“msg”: “OK (unknown bytes)”,
“redirected”: false,
“server”: “Apache/2.4.6 (Red Hat Enterprise Linux) mod_auth_gssapi/1.5.1 mod_nss/1.0.14 NSS/3.28.4 mod_wsgi/3.4 Python/2.7.5”,
“status”: 200,
“transfer_encoding”: “chunked”,
“url”: “https://auth.example.com/ipa/session/json”,
“vary”: “Accept-Encoding”,
“x_frame_options”: “DENY”
}
}
Thanks,
Harry