Confluence administration: Create personal space for new users
Asked by Andreas:

Is there an easy way to setup personal spaces for new users as a Confluence administrator?

We want to provide a set of personalised pages for new employees within a pre-set personal space.

The only solution I found so far is via the [Confluence Command Line Interface (CLI)](https://marketplace.atlassian.com/plugins/org.swift.confluence.cli/overview) add on. But this would be quite a bit expensive, since we'd only use it for that purpose...


Answers:
author: Minh Tran
body: [@Andreas](/t5/user/viewprofilepage/user-id/960599)

The latest Confluence does not have the REST api to create personal space. However our RPC method allows you to create personal space

*

  ```
  Space??addPersonalSpace(String token,?Space?personalSpace, String userName)?- add a new space as a personal space.
  ```

You can refer these below pages for further information

<https://developer.atlassian.com/server/confluence/confluence-xml-rpc-and-soap-apis/>

<https://developer.atlassian.com/server/confluence/remote-confluence-methods/>

comments: author: Andreas
body: Thank you for the hint, [@Minh Tran](/t5/user/viewprofilepage/user-id/732683)!

I'll have a closer look into that. Since my coding skills got a bit rusty over the last years, this may take some time... :-/

To use the REST api would be a lot easier for me, do you maybe know of any planes to implement that function in the upcoming releases?


author: Andreas
body: I was able to create the personal space. Here's what I did:

1. Downloaded [SoapUI Open Source](https://www.soapui.org/downloads/soapui.html)
2. Created a new SOAP Project  
   Initial WSDL: `http://<confluence-install>/rpc/soap-axis/confluenceservice-v2?wsdl`
3. Request "login"

   ```
   <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.rpc.confluence.atlassian.com">

   ?? <soapenv:Header/>

   ?? <soapenv:Body>

   ????? <soap:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

   ???????? <in0 xsi:type="xsd:string">username</in0>

   ???????? <in1 xsi:type="xsd:string">password</in1>

   ????? </soap:login>

   ?? </soapenv:Body>

   </soapenv:Envelope>
   ```

   This gives you back the authorization token for the next request.
4. Request "addPersonalSpaceWithDefaultPermissions"

   ```
   <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.rpc.confluence.atlassian.com">

   ?? <soapenv:Header/>

   ?? <soapenv:Body>

   ????? <soap:addPersonalSpaceWithDefaultPermissions soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

   ???????? <in0 xsi:type="xsd:string">tokenFromLoginRequest</in0>

   ???????? <in1 xsi:type="bean:RemoteSpace" xmlns:bean="http://beans.soap.rpc.confluence.atlassian.com">

   ??????????? <name xsi:type="xsd:string">userNameForPersonalSpace</name>

   ??????????? <type xsi:type="xsd:string">personal</type>

   ??????????? <spaceGroup xsi:type="xsd:string" xsi:nil="true"/>

   ???????? </in1>

   ???????? <in2 xsi:type="xsd:string">userNameForPersonalSpace</in2>

   ????? </soap:addPersonalSpaceWithDefaultPermissions>

   ?? </soapenv:Body>

   </soapenv:Envelope>
   ```


author: Minh Tran
body: [@Andreas](/t5/user/viewprofilepage/user-id/960599) Thanks for sharing back your answer.

I don't have a very clear date for the personal space REST api right now.

When we have any kind of information, it will be informed via here <https://confluence.atlassian.com/doc/confluence-development-releases-8163.html>


author: Vik
body: Thank you, work for me also)


Tags: administration

new-to-confluence

personal-space