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


Wiki source code of MembershipJson

Version 3.40 by bougault on 2022/03/18 13:00

Show last authors
1 {{velocity filter="indent" wiki="false"}}
2 $response.setContentType('application/json')
3 #set($query = $services.query.xwql("from doc.object(Collaboratory.Apps.Membership.MembershipRequest.Code.MembershipRequestClass) as requests"))
4 #set($memberships = $query.execute())
5 #set($map = {})
6 #set($rows = [])
7 #set($ok = $rows.add("toto"))
8 $jsontool.serialize(${rows})
9 {{/velocity}}