Receiving the following error:

Error 53275
Required User Database rights not granted

<code>
public String getAttachment(String attachmentId, String fileName, int
size, String location) {
FileOutputStream out;
int offset = 0;
final String file_name = fileName.toLowerCase();
FileSystemResource f = new FileSystemResource(location + file_name);


try {
if (f.exists() == false) {
out = new FileOutputStream(new File(location, file_name));
GetAttachmentResponse resp;

for (;;) {
resp =
this.getGwService().getAttachmentRequestMessage(at tachmentId,
offset, 6144,
this.getSessionId().toString(), false);
if (0 != resp.getStatus().getCode()) {
break;
}

out.write(resp.getPart().get_value());
offset = resp.getPart().getOffset();
if (0 == offset) {
break;
}
}
out.flush();
}

} catch (Exception ex) {
ex.printStackTrace();
return null;
}

return file_name;
}
</code>

Please advise.