GroupWise 2014 REST Commands

Wikis > Caledonia Private Wiki > GroupWise Administration > GroupWise 2014 REST Commands
This Wiki will show various REST commands that can control GroupWise settings from the command line.

Change the GroupWise Post Office Access Mode

curl –k –user : –X PUT –H “Content-Type: application/json” –data “{\”accessMode\”: \”DIRECT\”}” https://:/gwadmin-service/domains//postoffices/

The valid values for “accessMode” are:

CLIENT_SERVER – This matches the old Client/Server only value
CLIENT_SERVER_DIRECT – This matches the old Client/Server/Direct value
DIRECT – This matches the old Direct only value

Change the GroupWise User’s FID

curl -k –user admin -H “Content-Type: application/json” -X POST -d
‘{“name”:”jlebowski”,”surname”:”Lebowski”,”givenName”:”Jeff”,”fileId”:”big”}’
https://192.168.110.222:9710/gwadmin-service/domains/<domname>/postoffices//users

Of course, substitute your values for the name, surname, givenName, fileID, https address and port, domname and poname

Fix a bad GWIA directory location that prevents the GWIA from loading/upgrading

For future reference,  you can run this command to fix up the gwia directory.  Then you don’t have to delete/recreate GWIA.  Just substitute the appropriate data for your system

curl -k –user gwadmin:gwpassword -H “Content-type: application/json” -X PUT https://10.10.10.10:9710/gwadmin-service/domains/mydomain/gwias/GWIA –data “{\”gatewaySubDirectory\”:\”gwia\”}”

 

Change a User’s Password

curl -k –user gwadmin:pwd -H “content-type”:”application/json” –data {\”userPassword\”:{\”value\”:\”newpassword\”}} -X PUT https://192.168.1.160:9710/gwadmin-service/domains/yourdom/postoffices/yourpo/users/danita/clientoptions