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

User Profile Attribute


rkm258
Go to solution Solved by swood,

Recommended Posts

Hi,

    I tried updating/adding User Profile Attributes. But i just donot see the changes in the JasperServer database in jiprofileattribute table. Let me know if there is anything wrong that i'am doing.

   For ex: I tried updating a user's attribute value as below, but i donot see the changes

   User u = userService.getUser(ctx,userName);

    List l = u.getAttributes();

   ProfileAttribute p = (ProfileAttribute)l.get(0); //Obtained the first attribute

   p.setAttrValue("newValue"); //New value to a attribute

  userService.putUser(ctx,u); //Saving changes to user 

 

 

Ram

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

    Based on the documentation in ultimate guides, it seems the values in this profile attribute table, jiprofileattribute of JasperServer database, have to be entered manually and cannot be done through the API.

     Correct me if i'am wrong. Any inputs will be of help, as i need these attributes to define each and every user of my system.

Thanks

Ram

Link to comment
Share on other sites

  • 3 years later...

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