-
Suggestion
-
Resolution: Unresolved
-
None
-
4
-
Problem Definition
Personal spaces can only be created when the user follows the steps in Create your personal space.
Currently, there's no option to automatically create a Personal Space for every user in Confluence that has the Personal Space permissions.
Suggested Solution
If the user has the Personal Space global permission, create a personal space on the first login.
It could even be an opt-out option on the on-boarding plugin.
Workaround
The Confluence administrator can create the personal space of a user by running the addPersonalSpace RPC API method.
Below is an example of how to run that method using curl.
ADMIN_USRNAME=admin ADMIN_PWD=admin CONFBASEURL=http://localhost:26611/c6611/ TARGET_USERNAME=user007 curl --user $ADMIN_USRNAME:$ADMIN_PWD -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d "{ \"jsonrpc\" : \"2.0\", \"method\" : \"addPersonalSpace\", \"params\" : [{\"name\" : \"$TARGET_USERNAME\", \"spaceGroup\": null, \"type\": \"personal\"}, \"$TARGET_USERNAME\"], \"id\": 7 }" $CONFBASEURL/rpc/json-rpc/confluenceservice-v2?os_authType=basic
Note that this RPC API method bypasses Personal Space global permission, so it will create the space even if the target user doesn't have it.
With this, the admin can create an automation to add a Personal Space for new users after validating this user has the Personal Space global permission.
- is related to
-
CONFSERVER-23014 Allow Confluence admin to create Personal Space for users
- Closed