Hi,
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;
strRoles=loggedOnUser.getRoles();
strRole[0]...
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
Markandeya
Ep 5 or EP 6 ?
For EP6
Looking at the javadocs for the ume service http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/index.html
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