SOLVED Get User Information Using midclt and user.query API

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
How would I go about retrieving user information about the root user using the midclt command and the user.query API call? I tried the following:

Code:
midclt call user.query ["id"=1]


but I get a "zsh: no matches found: [id=1]" message.

Thanks,
Harry
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Another example that includes directory services users (SCALE):
Code:
 midclt call user.query '[["id", "=", 1]]' '{"get": true, "extra": {"additional_info": ["DS"]}}'


Core same can be queried via:
Code:
 midclt call user.query '[["id", "=", 1]]' '{"get": true, "extra": {"search_dscache": true}}'
 
Top