Am currently working mapping the user to an group, in UI there is an option of adding one user at a time.
After analyse i found this velocity macro script, to add user into group,
{{velocity }}
#set ($groupdoc = $xwiki.addToAllGroup(“dhivyalakshmig”))
{{/velocity}}
I need to add bulk users at a time. I have referred this RightsManagerUsersApi in that getAllUsers() and loop over above macro.
Am stuck at how to RightManagerUsersApi class this in velocity macro?
Tried cases:
{{velocity }}
$RightManagerUsersApi.getAllUsers()
{{/velocity}}
Nothing works.