Skip to Content
Former Member
Jun 01, 2006 at 04:28 PM

Reading a user's role in Dynpro


I am currently writing an application in Dynpro / java that will eventually run on EP6.

This application will allow external product distributors to enter sales information and view their history / performance. A distributors access will be quite limited in that they will only be able to see their own sales data.

In addition, the site will be accessed by internal employees who will have a much wider range of functions available to them. They will be able to view performance statistics for all distributors by region and see internal costing sales figures.

Rather than maintain roles within the program, or worse yet, maintain two separate applications, I would like to read a user's role within the portal environment and enable / disable functions in the application based on their role.

From what I have been reading it seems possible to obtain this information through the "getRoleFactory()" method in the UMFactory class but so far I haven't got it to work.

Has anyone had an practical experience obtaining role information from EP6 (in Dynpro preferably). Any information would be helpful at this point (a small code sample would be ideal).