This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it possible to read the actual archive path from the user via the restapi like informations as clientoptions over the internal soap connection ?

We try to consolidate things in GWise and we need to find all GWise archives.

So we need a list of the actual path from all users.

we know, we can do this with GWise Mailbox Management (the windows tool), but we have no windows workstations.

So we want do do this over the restapi

Thomas

  • 0

    If this is still of importance. i use this script to iterate through all active users and set the archive path. replace the "put" with "get" and remove the value part you shoould get the archive output.

    curl -k --user "$GWADMIN":"$ADMINPWD" -n -H "Content-Type:application/json" -X GET https://$IP:$PORT/gwadmin-service/list/user --silent 2>&1 | grep -oP '(?<=\}).*?(?=\{)' | sed 's/^.*\("name.*id"\).*$/\1/' | cut -c 9- | grep ',' | rev | cut -c 7- | rev | while read -r GWID
    	do 
    		curl -k --user "$GWADMIN":"$ADMINPWD" -H "Content-Type:application/json" -X PUT https://$IP:$PORT/gwadmin-service/domains/dom/postoffices/po/users/"$GWID"/clientoptions --data "{\"archiveLocationUnc\":{\"lock\":{\"locklevel\":\"LOCK_USER\",\"itemLocked\":true,\"lockAvailable\":true,\"lockRights\": \"LOCK_USER\",\"modifiable\":true}, \"value\":\"\\\\\\\\$SRV\\\\userdata\\\\$GWID\\\\GroupWise\\\\Archiv\"}}"
    	done

  • 0  

    That is interesting - if you do not have Windows workstations how do you archive?


    Use "Verified Answers" if your problem/issue has been solved!

  • 0 in reply to   

    have you tried adjusting the value part to a linux share. since i only use windows clients i didn't look in different share options. as per help "Linux Path: Specifies a local or personal folder where archived messages will be stored for GroupWise 8 Mac and Linux clients." linux clients will only allow local paths. unc is only available for windows clients.

  • 0   in reply to 

    I did not dare to ask for Linux or Mac clients Innocent

    One more remark: usually you will find (of course) only the latest archive path. But I have seen that users change this path - sometimes smart (for each year one archive) sometimes without knowledge (they see a strange string like ofXYZarc and "repair" it) and sometimes it is a local path (c:\)  but machines have changed ....


    Use "Verified Answers" if your problem/issue has been solved!

  • 0 in reply to   

    thats why i disabled user changes and even "hide" the archive folder. i also disabled deletion of the main folder so it cannot be deleted accidentally. sure subfolders can still be deleted but therefore you have daily backups ;-)

    the main reason for this script was to set the template and archive path for all users at once and not one by one as it seems to be intended by mf. this should be worth an idea to have bulk update for templates and archives.

    if interested i can also post curl command for user templates' folder. and yes it's windows client only :-p

  • 0   in reply to 

    Me too.

    And that's the reason why I use and recommend Retain (it is a little weird to run this thread in this Reload corner Sunglasses)


    Use "Verified Answers" if your problem/issue has been solved!