How to set tenant attribute in custom SSO?

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?

aperera's picture
Joined: Nov 6 2014 - 10:24am
Last seen: 4 years 7 months ago

0 Answers:

No answers yet
Feedback
randomness