Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-58088

As a Confluence administrator I would like to automatically create a Personal Space on user's first login

XMLWordPrintable

    • 4
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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.

              Unassigned Unassigned
              tmasutti Thiago Masutti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: