This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 25, 2011, 11:38 PM
2 Posts

Re: Error:'@UserRoles' not found

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags: @UserRoles
  • Replies: 5
Hi 
 
take a look at the context object (a global object) and the method getUser(). It will give you a user object (directoryuser) with a lot of nice user-related methods, getRoles() for example.
 
context.getUser().getRoles().contains("<role>") should solve your problem. 
 
 
Fredrik 
 
 
 
 
May 26, 2011, 4:51 PM
27 Posts
Re: Error:'@UserRoles' not found
 Many thanks Fredrik - That was exactly what I needed!

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal