Hi,
I am trying to add an attribute to a tenant:
ExecutionContext executionContext = JasperServerUtil.getExecutionContext();
List contextAttributes = new ArrayList();
contextAttributes.add("PRIVILEGED_OPERATION");
executionContext.setAttributes(contextAttributes);
ProfileAttribute attr = getProfileAttributeService().newProfileAttribute(executionContext);
attr.setPrincipal(tenant);
attr.setAttrName("name");
attr.setAttrValue("value");
getProfileAttributeService().putProfileAttribute(executionContext, attr);
but I get Acess Denied. How can this be done?
0 Answers:
No answers yet