Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

MembershipJson - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Changes for page MembershipJson

Last modified by bougault on 2022/03/18 14:34

From version 1.1
edited by bougault
on 2022/03/17 12:59
Change comment: There is no comment for this version
To version 3.45
edited by bougault
on 2022/03/18 13:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,4 @@
1 -{{velocity wiki="false"}}
2 -##$response.setContentType('application/json')
3 -##{
4 -##"greeting" : "Hello",
5 -##"location": "World"
6 -##}
7 -
8 -#set($memberships = $services.query.xwql("where obj.className = 'XWiki.XWikiUsers'").execute())
9 -
10 -$memberships
11 -{{/velocity}}
1 +{{groovy}}
2 +def jsontool = new org.xwiki.velocity.tools.JSONTool()
3 +print jsontool.serialize(['alice':2])
4 +{{/groovy}}