Programatically assign value to property based on role

Hi,

My requirement is that I need to show and hide some elements in the UI depends on the Role/Group/User. For that I need to know 2 things,

  1. How can set property for the element in UI dynamically/programatically?
  2. How can get to know the Group/Role that the logged in user belongs to? (Kindly provide code sample for local as well as LDAP)

Regards,
Suresh.A

Please look at the Role-based Access Control video tutorial: http://communities.softwareag.com/ecosystem/communities/public/Developer/webmethods/products/caf/tutorials/videos/index.html

Regards,
–mark

Thanks for the information.

Regards,
Suresh.A

Hi mimel,

This has been achieved.

If I want to maintain(render) for more than one Role then how how can I proceed?

Regards,
Suresh.A

Roles can be aggregated on MWS. That would probably be easiest. Alternatively, you can modify the binding expression to use an OR operator. (Just google JSTL OR operator for more information)

Regards,
–mark