Thanks Joseph for the input.
I tried the “User Agent configuration” method. However, it seems that this only becomes active once the policy is complete.
My GWS call is part of the policy for retrieving external information and processing it further in the same policy. I had hoped that the agent option in GWS's urlopen could be used for this. But I didn't get anywhere.
In the meantime, I found the following blog by Hermanni Pernaa and am checking whether I can go down this route: “DataPower: How to use password map aliases for safekeeping.”
Best regards
Res