cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the user list under role

junwu
Active Contributor
0 Kudos

Hi Gurus,

in mdm console, if you select a role, you will see the users who are assigned to this role.

how can I get this user list through java api.

Ouser server is MDM7.1SP5

Best regards,

John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello John

you cann't get users list.

you can get user roles information since SAP MDM 7.1 SP3:

com.sap.mdm.security.commands GetUserRoles Command

A command to retrieve the array of roles for the specified user

more about api you can read here(What's New in MDM Java and .NET API - part):

http://help.sap.com/saphelp_nwmdm71/helpdata/en/13/041975d8ce4d4287d5205816ea955a/frameset.htm

Regards

Kanstantsin Chernichenka

Edited by: Kanstantsin Chernichenka on Mar 11, 2011 3:10 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

i believe - and correct me if i am wrong - that in the internal MDM tables

the roles table doesnt have field pointing to the users

but we have a pointer in the users table to the roles table

so all you can do is retrieve all the users , then loop on them for the role of your choice and create the required resultset.

the con : performance ofcource !

but then , since this requirement has got absolutely nothing to do with Master data management as such , SAP would royally ignore your request to provide such an API

thanks

-Adrivit

junwu
Active Contributor
0 Kudos

thanks for the update,

i have done as you mentioned.