cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get a list of users for a specific role in EP 6.0

Former Member
0 Kudos

Hi,

I'm trying to find a table or an API that I can use to get a list of users for a role that I have created in the portal. There are about 940 users tied to this role that I would like to dump to an excel or text file. My goal is to get these users into a security group and tie the role to the group instead of each user. Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

detlev_beutner
Active Contributor
0 Kudos

Hi Chris,

first, welcome on SDN!

UMFactory.getInstance().getRoleFactory(roleID).getUserMembers() returns the users which are members of the role, see http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/com/sap/security/api/IRole.html

addGroupMember(...) adds a group.

removeUserMember(...) removes a user from a role.

Corresponding method exist for the groups.

Hope it helps

Detlev

PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

PPS: Wrong forum, should have been EP DEV for example. It's not a question in conjunction with KM.

Former Member
0 Kudos

Hi Chris,

You don't have to develop it.

You can export user data to excel file and then classify by role.

After that you can create this role, write this role in the file and import it.

Patricio.