JSON in datasource not working

Avatar

Avatar

tadijam47062732

Avatar

tadijam47062732

tadijam47062732

06-02-2020

According to this https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/commons/jackrabbit/user/AuthorizableQuer... 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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

tadijam47062732

Avatar

tadijam47062732

tadijam47062732

07-02-2020

This is the correct answer:

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

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

Answers (0)