Confluence administration: Create personal space for new users

Andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2018

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) add on. But this would be quite a bit expensive, since we'd only use it for that purpose...

1 answer

1 accepted

1 vote
Answer accepted
Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

@Andreas

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/

Andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2018

Thank you for the hint, @Minh Tran!

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?

Andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2018

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

  1. Downloaded SoapUI Open Source
  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>
Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

@Andreas 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

Vik June 29, 2018

Thank you, work for me also)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events