Jump to content
We've recently updated our Privacy Statement, available here ×

aperera

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by aperera

  1. 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?

×
×
  • Create New...