Jump to content
Changes to the Jaspersoft community edition download ×

How to set tenant attribute in custom SSO?


aperera

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...