Hi,
When a user is added to a group, it can be caught by GroupMembershipCreatedEvent.
How can I find out which user (name/ID) has been added to the group?
Of course I can get all the users from the group in question (ComponentAccessor.groupManager.getGroup("group_name") but I need to find just the added user.
Thanks,
Paul
Hi Paul,
I haven't tested this myself, but based on the javadocs about the GroupMembershipCreatedEvent, I would guess, you have to call the method getEntityName() on the event.
Cheers,
Matthias.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.