cancel
Showing results for 
Search instead for 
Did you mean: 

Portal User mgmt APIs - retrieve user / group / role data source

Former Member
0 Kudos

Hi Gurus,

I need to retrieve 'Data source' (like UME, LDAP etc) for a user, group and role. I checked all the the API classes (like IUser, IGroup, IRole) and I could't find a getter method.

How do we usually retrieve 'Data source' value of a user/group/role.

Please provide code sample.

Requirement is to match datasource of a group/role and user, and if matches then only assign the group/role to a user else ignore.

Thanks,

Amit Jain

Accepted Solutions (0)

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

Hi Amit,

You can get the data source from a user or role via

String[] datasources = yourUmeUserOrRole.getAttribute(IPrincipal.DEFAULT_NAMESPACE, IPrincipal.DATASOURCE);
String yourDataSource = datasources[0];

Robin