Main XWiki Maige is not accessable

Looks like all of our users were removed. Now we get this error when we access our wiki page.

              You are not allowed to view this page or perform this action.

I tried to add the users bac using the following curl command and was unsuccessful. But these two commands didn’t work for me.

curl -u Admin:admin -X PUT -d “parent=XWiki.XWikiUsers” -H “Content-Type: application/x-www-form-urlencoded” http://localhost:8080/rest/wikis/xwiki/spaces/XWiki/pages/jdoe

curl -u Admin:admin -X POST -d ‘className=XWiki.XWikiUsers&property#first_name=John&property#last_name=Doe&property#email=jdoe@company.com&property#password=pass1234’ -H “Content-Type: application/x-www-form-urlencoded” http://localhost:8080/rest/wikis/xwiki/spaces/XWiki/pages/jdoe/objects

You also need to add the user to the right groups (at least XWikiAllGroup).