Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

JSON in datasource not working

Avatar

Avatar
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile
tadijam47062732
Level 2

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
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile
tadijam47062732
Level 2

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)