Follow the steps listed here to troubleshoot if an error occurs when applying group membership while creating a user.
If you create a user through the administrative console, Users and Groups > Manage Users > Create, and then click Group Membership > Search, all the groups from all the repositories that are configured under federated repositories are returned by the search.
If you select one or more groups that are not in the same repository where the user is being created, and then click Add > Close to add the user to the selected groups, you might get the following error: “CWWIM1034E Missing repositoriesForGroups configuration for repository InternalFileRepository.” The user is created in the repository, but without any group membership.
The reason for this error is because the user is created in the configured default repository, which is the default File repository in this example, but the group applied belongs to another repository. For such cross-repository group membership configuration, the repositoriesForGroups property must be specified.