youngmon/atlassian-qna huggingface dataset:
Update ldap user attributes using confluence java api
Asked by Ankit:

I've integrated microsoft active directory as user directory in confluence. Now let's say I receive following ldap info in java variables given on left:

username : sAMACCOUNTNAME

principal name: userPrincipalName

email: mail

How should I access user based on ldap attributes. Is there any userAccessor like interface for ldap?


Answers:
author: Lars Olav Velle
body: Ankit,

What are you trying to accomplish? Your question is rather difficult to uderstand when you partly try to answer your own question.

If you are building an add-on then perhaps <https://community.developer.atlassian.com> is the best place to ask.

Our Single Sign-on add-on has the ability to use the client kerberos ticket, extract the userPrincipalName and based on your settings in the user directory find the email attribute of the user that logs in, which may be something similar to what you are trying to do.

If you could be more specific, I might be able to answer your question :)

Lars,

Kantega Single-Sign-on

comments: author: Ankit
body: Thanks Lars,

I'll post the question indeveloper forum as well and will try to be more specific this time. I'm trying to implement SSO using microsoft active directory as user directory. So my IdP sends some value in SAML response, I catch that in userPrincipalName. Then I want to search for that userPrincipalName in the AD to get the username of that user and log him in.


author: Lars Olav Velle
body: Yes,

Thats exactly what [our add-on](https://marketplace.atlassian.com/search?query=kantega) does. :)

Have you concidered buying any of the current SSO add-ons on the marketplace?

Chreers,

Lars


author: Ankit
body: Well, I'm trying to build my own. :) If you could just point me in the right direction as to which API class can help me, I'll be grateful. :)
Scroll Office: Using placeholders within placeholders
Asked by Marcel Woschek:

Hey guys,

as I was testing the *Scroll Office* plugin, I tried something, that works completely fine in the *Scroll PDF Exporter* plugin (V3.5): I tried to use a placeholder inside a placeholder.

*$scroll.includepage.($scroll.title Allgemeines)*

This doesn't seem to work in the *Scroll Office* plugin though. The inner placeholder is replaced as expected, but the outer placeholder throws an error.

It seems like the parsing of the placeholders works a bit different in the *Scroll Office* plugin, not from the inside to the outside, but rather parallel or even from the outside to the inside.

So my question is: Is there a workaround for this behaviour?

My final goal is to include pages in the Word file, that contain metadata such as a change history. Those "special pages" need a different formatting, thus I can't just include them within the $scroll.content-placeholder.

Because we are storing several documentations in the same space, those "special pages" can't just be named "Allgemeines" but must be named "Documentation name Allgemeines" (for example).

Thanks in advance

Marcel


Answers:
author: roman
body: Hi Marcel.

Scroll Office doesn't support this as we are not using Velocity to resolve such cases. That's why the first part part works, but not the second to resolve the Include Page placeholder.

There are no plans to implement such feature in the future.

Cheers,  
Roman.


Tags: addon-com.k15t.scroll.scroll-office

addon-com.k15t.scroll.scroll-pdf

k15t

scroll-office
How to Edit an Excel File
Asked by Deep Test account:

Hi All

I am not too technical yet I have managed to put an excel sheet on a Confluence Page by simpling dragging and pulling and it shows up nicely on the page and I want to Edit it from there. Is it possible? Please guide me.


Answers:
author: Marcel Woschek
body: I guess this link might help you:

<https://confluence.atlassian.com/conf53/editing-an-office-spreadsheet-from-confluence-411108684.html>


Tags: ms-excel
Confluence export keeps getting stuck
Asked by Lesly Cracchiolo:

Howdy,

I am trying to export a space from my cloud confluence and it keeps getting hung up right around 8%. I have read that some people have checked their export folder and found their export to be done, but honestly I don't now where that folder is?

Can someone help me figure out hwy its getting hung up or direct me to the export folder? :)

Thanks!


Answers:
author: AnnWorley
body: Since it's Cloud you don't have access to the folders on the file system to check if the back-up is completing.

Is the space back-up intended to be imported to another Confluence instance (XML back-up?) or is it for something else (HTML or PDF export)?

If it is a giant space and it needs to be exported for archiving or something like that, you might try exporting a few pages at a time, using the Custom Export option.

It should not be hanging at 8%, in any case, so please open a ticket at <https://getsupport.atlassian.com> to ask the support team to help you get the space exported.

comments: author: Lesly Cracchiolo
body: Thanks so much, Ann!

We're mirgrating from cloud to server and I'm just trying to export a space and move it there. Im currently trying an XML export, but they all seem to get hung up around the same %.

I have tried both Chrome and Firefox and it fails on both.

I'll put in a support ticket.


author: Jeramy S
body: Greetings,

What ever came of your ticket and could you provide a reference to the ticket? I'm having this issue three years later and can't find any results.
Whats the best way to bulk import content
Asked by Art Freas:

In the past and many versions of Confluence ago I wrote code to read DB tables and generate page heirarchies and content in flat files in file structures. Doing this I created a 20,000 page wiki in a few weeks. The flat files were WML and I used WebDAV to drag the flat files on a local disk in to the wiki. Is there a current way to do this? Looking to build another fairly large Wiki using confluence. Any pointers/help appreciated. Thanks much.


Answers:
author: Alex Koxaras _Relational_
body: hI [@Art Freas](/t5/user/viewprofilepage/user-id/1138783)

If you are using confluence server you could import a large number of pages from a single word file, by taking advantage of the different headings to import them as different pages.
Descending alphabetical order for sort of articles. New on top.
Asked by mkendallm:

I have been reading up on confluence sort order, because putting the pages at the bottom feels like it is self defeating to me, and eventually this means you have to scroll and scroll for new articles once your confluence is full of articles. If new articles were to appear on top, then scrolling is not needed.

Can anyone contribute to this feature request for confluence? Anything I have forgotten? Any other sort orders that you would like to see for new articles?

Current sort order functionality: manual, and alphabetical.

Proposed adding: descending alphabetical order

Proposed adding: user defined sort as well as admin defined sort order, so the admin can set the default view, but people can still change it if they want some other sort order. User changes would not affect everyone else viewing the space.


Answers:
author: AnnWorley
body: This suggestion ticket seems to address the sorting issue - I am not sure whether you are on Confluence Cloud or Server but there are requests open for both:

Cloud: [Expand page order alphabetical sort to allow reverse sort](https://jira.atlassian.com/browse/CONFCLOUD-31358)

Server: [Expand page order alphabetical sort to allow reverse sort](https://jira.atlassian.com/browse/CONFSERVER-31358)

To communicate directly with the dev team, please vote for and comment on one of those, they mention, as you pointed out, that the latest pages should be on top in the sorting order.

comments: author: mkendallm
body: I have voted and watched both of those suggestions, thanks.

Both are unconfirmed, and not accepted, but I can confirm this feature would make me very happy!
Confluence trial installation stuck on Configure cluster node
Asked by Van Couver:

I am trying to install a local confluence trial version and cant get past the Configure Cluster node screen on my Windows 10 machine. Clicking the Create New Cluster button does nothing for any of the otions -- except for wlan1, which then asks to connect to an existing database.


Answers:
author: AnnWorley
body: Please let me know if you used a Data Center license. That is the only way I can think that the options you are describing would come up during the setup wizard.

Please review this guide and let me know what step you were on when the Configure Cluster node screen came up. [Installing Confluence on Windows](https://confluence.atlassian.com/doc/installing-confluence-on-windows-255362047.html)

If you are in a situation where you need to use the Data Center license after you move to Production, go ahead and use a single server evaluation license to get the single node running or else follow: [Starting a Confluence cluster on a single machine](https://developer.atlassian.com/display/CONFDEV/Starting+a+Confluence+cluster+on+a+single+machine)

This guide also may come in handy: [Installing Confluence Data Center](https://confluence.atlassian.com/doc/installing-confluence-data-center-203603.html)

comments: author: Van Couver
body: Hi Ann, Thanks for the quick reply. You are right, somehow I managed to generate the datacenter license. Generated a server license and it works. Thanks again.


author: AnnWorley
body: Oh good! I hope you enjoy the trial - you know where to find us if you run into any more obstacles.


author: Noumenon72
body: I have the same problem and do not believe I generated a data center license. I was doing the free 30 days Windows install and checked the box for "Confluence Questions" under "Get Apps".


author: Noumenon72
body: Never mind, the back arrow shows me I did generate a data center license. I feel like the position of these things swapped spots on the page at some point! Server was always on the left.
Confluence and Outlook
Asked by Soumya Guha:

Is there a Confluence plugin with functionalities and features similar to the [IBM Connections plugin for Microsoft Outlook](https://m.ibm.com/https/greenhouse.lotus.com/plugins/plugincatalog.nsf/assetDetails.xsp?action=editDocument&documentId=E687B026FE7E587B85257B2500551498&wirelessshow=2)?


Answers:
author: Vero Rivas
body: Hi [@Soumya Guha](/t5/user/viewprofilepage/user-id/1138778)

Look at this page, you have some, could you assess which one best suits your needs

[https://marketplace.atlassian.com/search?product=confluence\&query=outlook](https://marketplace.atlassian.com/search?product=confluence&query=outlook)

Cheers


Tags: ms-outlook
How to demote headings in an Include Page macro?
Asked by Shawn Wilson:

My primary page has Headings 1-3, and an Include-Page macro of another page that also has Headings 1-3. However, because that page is a subsection of the primary page, I'd like the headings to be demoted to levels 2-4 (while still being 1-3 on their original page).

Is there a way to do that?


Answers:
author: Robert Reiner _smartics_
body: I'm not aware that this can be done with the Include-Page macro.

The commercial [projectdoc Toolbox](https://www.smartics.eu/confluence/x/1YEp) supports this use case with the [Section Macro](https://www.smartics.eu/confluence/x/fANz) and the [Transclusion Macro](to?https://www.smartics.eu/confluence/display/PDAC1/Transclusion+Macro). Please refer to **[Target Section Level](https://www.smartics.eu/confluence/display/PDAC1/Transclusion+Macro#TransclusionMacro-TargetHeadingLevel)** or**[Heading Level Transposition](https://www.smartics.eu/confluence/x/VAH1Aw)**for a visual example.

The tip [Content Reuse](https://www.smartics.eu/confluence/x/qQdwAg) provides more information on transclusions with the projectdoc Toolbox.

Please note that I'm one of the authors of the mentioned commercial add-on.


Tags: heading

include

macro
How can I view the storage format of a user-created template?
Asked by Stephanie Blotner:

I know how to use **... \> View Storage Format** to view the storage format of a page, but how can I view the storage format of a user-created template? I have admin permissions.

Thanks!


Answers:
author: Pavel Potcheptsov
body: Create page from interested template and look for storage format.


Tags: storage-format

template
How to stop images from expanding when exported to pdf
Asked by Jim Hart:

In Confluence, we use tiny image files as icons to indicate status of items in tables. When we export the table to PDF, the tiny icons are expanded to a huge size. How can we retain the original size of the icon images in an export?


Answers:
author: Thomas Schlegel
body: Hi Jim,

this is a known problem. Look here:

<https://jira.atlassian.com/browse/CONFSERVER-34385>

On that page, you can also find a workaround.

comments: author: Jim Hart
body: Thanks Thomas. That does indeed solve my problem, though it's going to be a pain to have to resize every image we use back to its original size, just to get around this bug. (We use a lot of images.)


author: Thomas Schlegel
body: Yes, it is. I've gone through this some months ago...
How can I hide the "Space Tools" option in the navigation sidebar?
Asked by Jeremy Byron:

This option should not be available and I need it to be hidden from my naviagtion menu.


Answers:
author: AnnWorley
body: Please try the solution in [How to hide the Space Tools menu for Anonymous Users in Confluence](https://confluence.atlassian.com/confkb/how-to-hide-the-space-tools-menu-for-anonymous-users-in-confluence-816877024.html) and let us know if it works for your instance.

comments: author: Jeremy Byron
body: Thank you this works.


author: AnnWorley
body: Thanks for following up so the Community can benefit. Have a great day!


Tags: jira

jira-service-desk
Hootsuite + Confluence
Asked by Sarah McVey:

Hi, is there a way to intergrate hootsuite onto confluence? The goal is to create a social calendar that our clients can approve(previous question), then post it through hoosuite. Is that possible?


Answers:
author: AnnWorley
body: As a quick follow up to this question and [How do I make a social calendar on confluence?](https://community.atlassian.com/t5/JIRA-questions/How-do-I-make-a-social-calendar-on-confluence/qaq-p/603269#M199698):

Although there is no Hootsuite integration available for Team Calendars, there are Hootsuite integration plugins available for JIRA Service Desk (Cloud only) and HipChat:

[Hootsuite for JIRA Service Desk](https://marketplace.atlassian.com/plugins/com.6kites.jsd-hootsuite/cloud/overview)

[Hootsuite for HipChat](https://marketplace.atlassian.com/plugins/com.6kites.hootsuite.hipchat/cloud/overview)

It might be worthwhile to contact the solution partner that came up with those: [6kites](https://marketplace.atlassian.com/vendors/1212660/6kites)


Tags: hootsuite

jira
Modify the page layout using the documentation theme
Asked by Simona Persico:

Hi,

in a space i'm uing the documentation theme because it is very important the left navigation menu, at the same time i'd like to modify the layout of all pages for this space to insert a macro automatically in all pages... How I could do it?

thank you very much for your help!

simona


Answers:
author: Stephen Deutsch
body: It is possible, but only in the header (very top) or footer (very bottom) of the page.

Go to "Space Admin" -\> "Themes" -\> Click "Configure Theme" -\> then you will see two text boxes, one for header and one for footer. The macro will need to be inserted here using the old Confluence wiki markup. It's basically {macroName} or {macroName:parameter=value\|parameter2=value2}

If you need to figure out the names of the parameters, just click the "View Storage Format" menu option for a page and then map those to the wiki markup format.


Tags: c
How to manage 2 separate Confluence instances group memberships with a single AD ?
Asked by Ricardo Guerra:

Hi there,

my scenario is as follows:

we have a single AD with 2 user groups (confluence-administrators and confluence-users).  
There was already a Confluence instance using these groups and enforcing licensing.

Now, we have another Confluence instance for another project with separate licensing conditions.

The groups identified above are being user for user management on the second instance.

How can handle this scenario separately, should we create separate confluence groups for each instance in AD (confluence-administrators1, confluence-administrators2, confluence-users1, confluence-users2) and leave the default groups empty ?  
If so, how should we configure global permissions in Confluence ?  
Please indicate how should we proceed.

Thanks in advance!

Cheers,

Ricardo Guerra


Answers:
author: Reinhard Piltz
body: You create confluence1 and confluence2 in the AD groups.  
There the users are registered by name, which can log on to the respective Confluence.

In the AD groups confluence-user or confluence-administrator, they assign the respective users for user or adminstrator rights.

Now create two LDAP filters.

User object filter

(\&(objectCategory=user)(memberOf=CN=confluence1,OU=your subvol in AD,DC=e.g. your company name,DC=com or org or de))

(\&(objectCategory=user)(memberOf=CN=confluence2,OU=your subvol in AD,DC=e.g. your company name,DC=com or org or de))

Group object filter

(\&(objectCategory=group)(\|(cn=confluence-user)(cn=confluence-administrators)))

Only the users from group confluence1 are now taken over from the groups confluence-user or confluence-administrators.
Consolidation of Status Macros on different SubPage
Asked by Norman Ortmann:

Hi guys,

we have different detailed reports within our Confluence and would like to extract the Status Macros set and also create some tables out of the information.

The goal is do create a page that give an idea about the overall statuses of the SubPages without having to access each page.

Thank you for your help.

Cheers Norman


Answers:
author: Robert Reiner _smartics_
body: Is this something the [Page Properties Macro](https://confluence.atlassian.com/doc/page-properties-macro-184550024.html) could handle?

The status is a property on each page and the report macro lists all pages. The example on the referenced page shows exactly that.

There are other (commercial) add-ons that provide macros for some more use cases (which I use, therefore I'm not that familiar with the Page Properties Macro), but maybe the standard macro does the trick?

comments: author: Norman Ortmann
body: Hi Robert, thank you for the answer we are playing with the page properties macro already ;)

Cheers Norman


author: Robert Reiner _smartics_
body: If the features of the *Page Properties Macro* do not meet all your requirements, our (commercial) [projectdoc Toolbox](https://www.smartics.eu/confluence/x/EAFk) provides some features in the field of Agile Documentation, transclusion, and single sourcing.

For your use case: The [Document Properties Marker Macro](https://www.smartics.eu/confluence/x/rgNk) allows to define properties (similar to the *Page Properties Macro* ) and the (for example) [Display Table Macro](https://www.smartics.eu/confluence/x/wgNk) lists matching pages and their properties/sections (similar to the *Page Properties Report Macro*). I use the combination of the two to show the state (such as finished, production, deprecated) of documents on an overview page.

In case you'd like to have a quick view on the features: We have a [page that compares features](https://www.smartics.eu/confluence/x/4ABNAg) of the projectdoc Toolbox and a Confluence (in version 5): [Page Properties and Document Properties](https://www.smartics.eu/confluence/x/QABgAQ)

Biased alert: Note that I am one of the authors of the projectdoc Toolbox. ;)


Tags: macro

report
Creating a form in Confluence
Asked by Norman Ortmann:

Hi guys,

we want to create a form in Confluence which can be added as template and allows the teams to add their data in a uniform way.

We would like to add radio buttons or maybe even drop downs. Does anyone has experiance in designing forms with this requirements?

We already tried to do it via Word but Confluence was not able to translate the the form.

Thank you for your help.

Cheers Norman


Answers:
author: Davin Studer
body: Another add-on to consider would be Confiforms. It also allows you to create forms in Confluence that can do a multitude of things such as send emails, create/update/delete pages, create Jira tickets, hit REST api's, store data in a structured format, etc. It's a super powerful and hugely configurable add-on. I have no affliatiobn with them ... I just love their add-on.


author: Thomas Schlegel
body: Hi Norman,

unfortunately, Confluence has no form functionality. You can create templates, but I don't think, that they suit your needs.

We use the "[Scaffolding Forms \& Templates](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.scaffolding/server/overview)"-Plugin for that. It works well, but is not for free.

With that plugin, you create a page with template macros (also drop downs). Your users do not edit the template, but enter the values into that form. The result is a page based on your template and the data of your users.

comments: author: Norman Ortmann
body: Hi Thomas, thank you for your answer i will dig depper into that.

Cheers Norman


Tags: template
Delete selected pages from the trash can
Asked by Patrick Vanhoof:

Is there a way to remove a selection of pages from the trash can, or do I have to remove them one by one (or the whole trash can at once)?


Answers:
author: Davin Studer
body: What you see is what is available. You can delete them one by one or empty the whole trash.

comments: author: Patrick Vanhoof
body: I found <https://jira.atlassian.com/browse/CONFSERVER-22499>, but it was closed without implementation. Too bad.