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

getting current user roles


malek

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

No sure how you want to restrict it but here is the expression to get hold of the roles for logged in user:

 

$P{LoggedInUser}.getRoles().toString()

 

where $P{LoggedInUser} class type is com.jaspersoft.jasperserver.api.metadata.user.domain.User

 

 

Regards

Javed

Link to comment
Share on other sites

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