Expand my Community achievements bar.

SOLVED

JSON in datasource not working

Avatar

Level 3

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?

1 Accepted Solution

Avatar

Correct answer by
Level 3

This is the correct answer:

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

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

This is the correct answer:

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

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