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

Referencing logged-in-user attributes in a sql


zhu001

Recommended Posts

Hi,

 

Does anyone know if it is possible to reference logged-in-user attributes in a sql?

 

Let's say I integrated JS with existing ldap and user entries have custom attributes assigned to them in the ldap tree.

Is there a way to reference them in a sql of a jrxml file?

Something like:

 

select f1, f2, f3 from table

where f4 = {user.attribute}

 

Thanks!

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thank you for reply.

It looks like, it is possible reference user id, name, email, ..., but how about custom attributes like region id or company id. Which are defined externally in ldap tree. Looking at User object API (posted in that thread by swood), i don't see a method to call for custom attributes.

 

Please advice.

Link to comment
Share on other sites

  • 1 month 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...