on 12-12-2011 10:53 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.