Getting a count of users through terminal for GroupWise 14 or 18 by using the RestAPI.

Getting a count of users through terminal for GroupWise 14 or 18 by using the RestAPI.

Below is an easy way to get a count of users from each post office. Please follow the directions after the command:

curl -sS -k --user admin:novell -X GET https://#serveraddress#:9710/gwadmin-service/domains/#domain#/postoffices/#postoffice#/users > /tmp/tmp.txt ; tr '"' '\n' < /tmp/tmp.txt | grep -c guid ; rm /tmp/tmp.txt

  1. Modify the user portion with your GroupWise admin username and password.
  2. Modify the URL section to reflect your own GroupWise information. (#serveraddress#, #domain#, #postoffice#.)
  3. Copy and paste the URL into your browser. After logging in, you should see XML information. If you receive a 404 not found error, double-check your URL information.
  4. Run the command. You will see a number count below the command for how many users are present in the specified post office.

MobaXterm_2019-08-19_13-37-48.png

Labels (1)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2019-08-19 20:40
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.