cancel
Showing results for 
Search instead for 
Did you mean: 

Retreive Current active/selected Role & active/selected Workset - WebDynpro

Former Member
0 Kudos

Hello All,

I'm working on 2004s and trying to make a webdynpro application, which would retrieve following data of existing Portal users:

1> Current Role (User selected Role)

2> Current Worket that is attached/assigned to the current role (referring to point 2 above).

Note: Users have multiple roles & Roles have multiple worksets.

Thanks,

Satya.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Satya,

To get list of roles use String[] IRoleFactory.getRolesOfUser(String uniqueIdOfUser, boolean recursive) (https://media.sdn.sap.com/javadocs/NW04/SPS15/um/com/sap/security/api/IRoleFactory.html). To get worksets assigned to roles you can try to use approach described here /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher

More on PCD:

/people/daniel.wroblewski/blog/2006/07/30/everything-you-wanted-to-know-about-the-pcd

/people/daniel.wroblewski/blog/2006/08/15/pcd-ii-creating-portal-objects

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

I'm getting the Roles assigned to the User. But I want the active role name/id. Here I'll explain the scenario.

Ex:

We have Content Admin, System Admin, and User Admin.

If Suppose user in System Configuration tab of System Admin Role then

I want Active Role as 'System Admin' & active Workset as 'System Configuration'.

How to get the active role and active workset?

Thanks,

Satya

Former Member
0 Kudos

I have the same need as Satya. Does anyone have answer?

Please share.

Thanks,

Kevin

former_member182372
Active Contributor
0 Kudos

Hi Satya,

Check /thread/52194 [original link is broken]

best regards, Maksim Rashchynski.

0 Kudos

Hi Kevin

Did you solve the problem.

If yes then can u guide me

Regards

Nitin