how to map all the spaces exists in my organization
Asked by daniel ben zaken:

i would like to map all the spaces in my organization-   
space name and its premissions.


Answers:
author: Valerie Knapp
body: Hi [@daniel ben zaken](/t5/user/viewprofilepage/user-id/5316155) , thanks for your question.

You can use the Spaces List macro to display all the spaces in your instance - [Insert the spaces list macro \| Confluence Cloud \| Atlassian Support](https://support.atlassian.com/confluence-cloud/docs/insert-the-spaces-list-macro/)

But, with this, you don't see the permisisons, just like this -

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/288435iE4FCEE35475E50DC/image-size/large?v=v2&px=999 "image.png")

Would this meet your requirement? You can also configure the macro to show spaces by category so you could have the same macro with different configurations to show different groupings. What are you hoping to obtain by showing the permissions?

comments: author: daniel ben zaken
body: Hi Valerie, thanks for your answer :)  
I wish to map al the spaces' permissions because we are moving to work with permission per group instead of per user.

So I'd like to have a list of all spaces and their users.


author: Valerie Knapp
body: Hi [@daniel ben zaken](/t5/user/viewprofilepage/user-id/5316155) , I don't think this will be possible without an app.

[Explore apps for Atlassian products \| Atlassian Marketplace](https://marketplace.atlassian.com/)

If you do a search, there are a few options, and if you just need to do an analysis, probably you can just use the free trial for a month.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/288561i9451E2F0133435E5/image-size/large?v=v2&px=999 "image.png")

Hope this helps.


author: Roma Bubyakin
body: Hi [@daniel ben zaken](/t5/user/viewprofilepage/user-id/5316155)

I'm from Wombats Corp marketplace partners.  
As [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) said 3rd party plugins could do it.

We have already developed a [User Macro for Confluence Cloud](https://marketplace.atlassian.com/apps/1232013/user-macro-for-confluence-cloud?hosting=cloud&tab=overview&utm_source=community&utm_medium=2516441) app for custom macro development.

Here is an example of how you can show Space Permissions with it.

It listed all global spaces (excluding personal) in a sortable table with their permissions. You can modify the view and the data based on your needs by updating the template.

![Space Permissions with User Macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/290928iC22F1F4ECE9B36D5/image-size/large?v=v2&px=999 "Space Permissions with User Macro.png")

Template for that:  

```
## Get all spaces
#set($spaces = $ConfluenceManager.get("/wiki/api/v2/spaces?type=global&limit=250&include-icon=true"))

<table class="aui aui-table-sortable">
  <thead>

    <tr>
      <th>Space name</th>
      <th>Author name</th>
      <th>Date created</th>
    </tr>

  </thead>
  <tbody>

    #foreach($space in $spaces.results)
    #set($user = $ConfluenceManager.get("/wiki/rest/api/user?accountId=$space.authorId"))
    #set($createdAt = $StringUtils.substringBefore($space.createdAt, "T"))
    #set($icon = $StringUtils.remove($space.icon.path, "/wiki") )

    <tr>
      <td><img src="$baseUrl$icon" width="15"><a href="$baseUrl$space._links.webui">$space.name</a></td>
      <td><a href="$baseUrl/people/$user.accountId">@$user.displayName</a></td>
      <td>$createdAt</td>
    </tr>

    #end

  </tbody>
</table>
```

<br />

I would be happy to assist you with any questions.  
Regards, Roman


Tags: cloud

confluence-cloud