cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Role paramter..please guide

Former Member
0 Kudos

Hello All,

Am building a user-role extract tool.

Have extracted all users and their assigned role except - I need to extract a parameter of portal roles. The parameter is called ID (example: pcd:portal_content/ESS/ESSRole)

Could you please guide me how should I extract details from this parameter.

Awaiting Reply.

Thanks,

Ritu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ritu,

You can get the Role ID using the following code:

IRole irole=UMFactory.getRoleFactory().getRoleByUniqueName("<role name>");

String uniqueid=irole.getUniqueID();

If you have any more question please feel free to revert back.

Regards,

Seema Rane.

Answers (2)

Answers (2)

Former Member
0 Kudos

resolved on my own.

Former Member
0 Kudos

I assume you're looping through the users and finding their roles? What is the form of the role name? You may need to find the role in the RoleFactory and then return its pcd name. I can't remember if it's the unique ID, the UID or the unique name! There are too many which I can never remember, so I just try them all...