For Internal and Caching directories, when searching for memberships you should be able to apply a search restriction to the result

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 2.9.1
    • Component/s: None
    • None

      An example of this search would be the following:

      MembershipQuery query = QueryBuilder.queryFor(String.class, group()).with(Restriction.on(GroupTermKeys.NAME).startingWith("jira-admin")).parentsOf(user()).withName(ADMIN_USER).startingAt(0).returningAtMost(10);
      
              MembershipQuery<User> userMembershipQuery = QueryBuilder.queryFor(User.class, EntityDescriptor.user())
                      .with(Restriction.on(UserTermKeys.NAME).startingWith("justin"))
                      .childrenOf(EntityDescriptor.group())
                      .withNames("crowd-administrators", "jira-administrators")
                      .startingAt(1)
                      .returningAtMost(31);
      

            Assignee:
            Justin Koke
            Reporter:
            Justin Koke
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: