on 10-25-2007 11:16 AM
How do I get the users which are assigned to a role? (in java)
eg. two users have role "test". I need to have those users.
Hi Franseen
Check the below link
<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=2060854#2060854">Assigned Role</a>
Regards
Sivaprasath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello T.
try this code:
UMFactory.getRoleFactory().getRoleByUniqueName("role unique name").getUserMembers(true);
or
UMFactory.getRoleFactory().getRole("role unique id").getUserMembers(true);
hope it helps.
regards.
mz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! T.
you need to use the UME Api.
1.add com.sap.security.jar in your class path.
2.you should create an Object to RoleFactory
3.use the method getUsersOfRole() method of this factory.
Use the following link to know the UME API's.
<a href="http://help.sap.com/javadocs/NW04/current/um/index.html">http://help.sap.com/javadocs/NW04/current/um/index.html</a>
for more help please revert back.
regards,
Mithileshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.