Skip to Content

Get roles information from a Group using WD JAVA

Hi Experts,

I have a requirement please help me on that.

I want the roles information of a group(Groups are maintain in the LDAP) using program(WD JAVA) or any other way to extract.

Because I have tried to export the group export but not returned as intended(Parent child relationship in the group)

So if know how to extract please let me know.

Thanks and Regards,

Amit Basak

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 23 at 10:52 PM

    Hi Amit,

    The UME API should provide you with accessing the information you require,

    Best regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Nick,

      Thanks for your reply.

      Can you please provide me any code reference for better understanding(If you have) that is very helpful for me.

      Thanks and Regards,

      Amit Basak

  • Jan 29 at 11:24 AM

    Hi Amit,

    You can try something like:

    IUser iUser;
    Iterator<?> iterator;
    String groupKey;
    String groupName;
    iUser = UMFactory.getUserFactory().getUserByLogonID(loginUserId); IGroupFactory = UMFactory.getGroupFactory(); iterator = iUser.getParentGroups(false);
    while (iterator.hasNext()) { groupKey = (String) iterator.next(); IGroup = IGroupFactory.getGroup(groupKey);
    groupName = IGroup.getDisplayName().toUpperCase()
    ... }

    Kind regards,
    Garcia

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Garcia,

      Thanks for the reply and also sorry for late reply.

      The above code is for only one user.But my requirement is that I need to get all group first from the LDAP(which has already done) after that I need to select group from drop down and it will return assign Roles and User details of that group.

      Thanks,

      Amit

  • Feb 20 at 12:57 PM

    Hi Amit,

    Just try to play with UME API and I believe you'll make it. The example I've gave is just a starting point so you can develop the required logic.

    Kind regards,
    Garcia

    Add comment
    10|10000 characters needed characters exceeded