Is there any way to prevent local user registration?

That is to say, even registered in local wiki, the user will be global user.

There is no way at main wiki level to do that, you have to disable it in each wiki: the way to disabled registration is by removing register right from ā€œUnregistered usersā€ or by explicitly giving it to XWikiAllGroup for example (which will remove it from ā€œUnregistered usersā€ if it does not already have it).

1 Like

When you create a new wiki, you can select in Step 2, in the ā€˜User Scopeā€™: ā€œOnly global users are available in the wikiā€. After creation the selection for the wiki can be seen in Administration > Users.