Skip to Content
author's profile photo Former Member
Former Member

How to get the Role Ids for the portal logged in user


I am using usermenagement to find out the roleids for the looged in user.

I found the method below to retrieve all names of roles assigned to the looged in user.

IUser loggedOnUser = (IUser)compRequest.getUser().getUser();

String strRoles[]=null;



But this name is displayed rolename.prefix. But i need to check with the role id only.

So how role ids can be found.

Thanks & Regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 04, 2004 at 10:05 PM

    Ep 5 or EP 6 ?

    For EP6

    Looking at the javadocs for the ume service

    There is a method public java.lang.String[] getRolesOfUser(java.lang.String uniqueIdOfUser,boolean recursive) in the IRoleFactory.

    You can get an instance of this by calling UMFactory.getRoleFactory

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      We are using EP5.

      It seems the in EP6 the IRolefactory getRolesOfUser(java.lang.String uniqueIdOfUser,boolean recursive) returns ids of the Roles.

      But in EP5

      Interface IRoleFactory dosenot have any method for getRole ids.

      Thanks & Regards


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.