Rest api for adding users to XWikiAllGroup is too slow

Hi,

we are using rest web services for adding new users to XWiki.
After the creation of the XWikiUsers class, we need to add the user ID to the XWikiAllGroup (to allow the user to access Xwiki main page).
In order to do this operation, we set the timeout to 1 minute. Despite this change, we noticed that this adding operation requires too much time (it goes beyond the one minute time required to perform the user ID insertion to the group).
Can you suggest me a way to fix this inconvenience?
Below example of the code for the call to the webservice:

curl -v -u Admin:admin -X POST -d “className=XWiki.XWikiGroups&property#member=XWiki.USERID” http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/XWikiAllGroup/objects

Thank you for reply

Do you have lots of users in your wiki? If so, I’d recommend that you use the implicit XWikiAllGroup which is meant for that. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HLargenumberofusers

Incidentally this will remove the need to add the user to this group :wink:

You saved my day :slight_smile:

Thank you!