You dont need to mention the name of the groups.
The user group call back takes them by itself. All you need is to register the UserGroupCallback via UserGroupCallbackManager. You could use a property file to specify the mapping between the users and roles in the format :
And specify the path of this file in your CustomUserGroupCallBack.
This will invoke the callback and will take the groups for the userId.