JSON in datasource not working | Community
Skip to main content
tadijam47062732
Level 3
February 6, 2020
Solved

JSON in datasource not working

  • February 6, 2020
  • 1 reply
  • 1422 views

According to this https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/commons/jackrabbit/user/AuthorizableQueryManager.html I've put JSON in my datasource to show me users from one group in the selectbox.

This way, all works fine:

{ "selector": "user", "scope": { "groupName": "test-approver", } }

The problem here is that it includes all users from test-approver group, but not users from groups that are members of "test-approver".

There is option in the documentation provided at the beginning of this question where option 

( declaredOnly: true | false ) 

is shown. This should mean that it will show users from sub-groups I guess.

 

However when I try to use it, selectbox is empty (even if I try using it as true which is default value).

Example:

{ "selector": "user", "scope": { "groupName": "boots-approver", "declaredOnly": true } }

 I know there is option of creating a group that will have all users that I want, but this way is more clear so I want to approach it like this. Any ideas why this is not working?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by tadijam47062732

This is the correct answer:

{ "selector": "user", "scope": { "groupName": "boots-approver", "declaredOnly": false, } }

that "," after the  "declaredOnly": false was needed for some reason.

1 reply

tadijam47062732
tadijam47062732AuthorAccepted solution
Level 3
February 7, 2020

This is the correct answer:

{ "selector": "user", "scope": { "groupName": "boots-approver", "declaredOnly": false, } }

that "," after the  "declaredOnly": false was needed for some reason.