Uploaded image for project: 'Crowd'
  1. Crowd
  2. CWD-3512

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

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Fix Version/s: 2.9.1
    • Component/s: None
    • Labels:
      None
    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      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);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              justin@atlassian.com Justin Koke
              Reporter:
              justin@atlassian.com Justin Koke
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: