on 04-10-2008 11:07 AM
Hi All,
I tried to check whethr the logged user Belong to the EVERYONE group by using "user.isMemberOfGroup("EVERYONE",true") method. but its always returning false.
IWDClientUser clientuser = WDClientUser.getCurrentUser();
IUser user = clientuser.getSAPUser();
userGroups = user.getParentGroups(true);
wdComponentAPI.getMessageManager().reportSuccess("Is Member--"+user.isMemberOfGroup("EVERYONE",true));
what would be the problem with this code.
Regards
Sridhar.
Hi,
The method isMemberOfGroup takes the first parameter uniqueIdOfGroup which is the unique id of the group.
For the group Everyone try to call with:
user.isMemberOfGroup("GRUP.SUPER_GROUPS_DATASOURCE.EVERYONE",true);
Best regards,
Avishai Zamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks. my prob has been corrected.
IWDClientUser clientuser = WDClientUser.getCurrentUser();
IUser user = clientuser.getSAPUser();
userGroups = user.getParentGroups(true);
wdComponentAPI.getMessageManager().reportSuccess("Is Member--"+user.isMemberOfGroup("GRUP.PRIVATE_DATASOURCE.un:CPO",false));
Regards
Sridhar
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.