I want to create a user macro which delivers the ability to add users to an existing group.
I tried the macro and it worked fine. But for a standard user the macro does not work.
I found out that this line of code is the reason:
$userAccessor.addMembership($group, $memberuser )
This method can't be executed when logged in as a non-admin-user. Any idea how this can be solved?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.