October 19, 2017 at 5:45 am #19196
In 3.5, with the newer version of Rest2LDAP that supports nested resources, is there support for filtering and paging of group members?
example-v1.jsonfile defines a
frapi:opendj:rest2ldap:group:1.0resource type that lists each of the
uniqueMemberrecords when you query for a group under the URL
/api/groups/administrators). If that group has, say, thousands of users, are there ways to:
1. Cull down the result set to only include information on a particular user?
2. Only show something like 50 users from the group at a time?October 23, 2017 at 3:33 pm #19245JnRouvignacParticipant
I think this should answer your question? https://backstage.forgerock.com/docs/opendj/3.5/server-dev-guide/#query-rest
IIUC, you can use CREST filters, but you cannot use paging.October 24, 2017 at 10:23 pm #19274
@jnrouvignac Unfortunately, that only works on collection sub-resources. In other words, the list of groups, but not the members _inside_ the group.
You can use the CREST filters to locate a group based on name, description, etc, but not based on the members inside the group. It does not appear that query operations are supported at all on singletons (i.e. each individual group within the list of groups).October 29, 2017 at 6:48 pm #19379
As an update to this thread: I’m working on extending OpenDJ with a related feature, as part of a pull request into the Wren:DS project:
Using this feature, you can create a read-only collection resource that flattens the sub-tree of all users into a single collection, then filter that flat collection of users by their group membership.
- This reply was modified 2 years, 9 months ago by GuyPaddock.
You must be logged in to reply to this topic.