youngmon/atlassian-qna huggingface dataset:
Admin user couldn't change username (login id) for some of the users
Asked by Nachu Subramanian:

Hi All,

We are using Confluence 6.0.2 with the confluence H2 embedded database. We want to maintain a certain format for User IDs in confluence. But we have some users already existing in the confluence with many different User ID formats. So, i want to edit those users and change their User ID. But, even though i have admin privileges and logged in as an administrator, I cannot edit their user id. But it allows me to edit the name or mail id. Please let me know how to edit the User ID and why I am not able to edit it even with administrator privileges.

We are not using external user directories. We are just using Confluence Internal Directory and so I want to know if there's a way to edit the user id directly in Confluence Internal Directory. If yes, please let me know how to do the same.

Attached is the screenshot that shows I couldn't edit the user id field. Also below is the Directory Configuration that shows i have all necessary privileges to edit the user id:

Name: Confluence Internal Directory  
Active: true  
Type: INTERNAL  
Created date: 2016-12-16 16:22:18.963  
Updated date: 2016-12-16 16:22:18.963  
Allowed operations: \[CREATE_GROUP, DELETE_GROUP, CREATE_ROLE, **CREATE_USER, UPDATE_USER,** UPDATE_ROLE, UPDATE_ROLE_ATTRIBUTE, DELETE_ROLE, UPDATE_GROUP_ATTRIBUTE, **UPDATE_USER_ATTRIBUTE,** DELETE_USER, UPDATE_GROUP\]  
Implementation class: com.atlassian.crowd.directory.**InternalDirectory**   
Encryption type: atlassian-security  
Attributes:  
"user_encryption_method": "atlassian-security"![Confluence User id Change Error.jpg](/t5/image/serverpage/image-id/1238i7B5C8A61221ED6DE/image-size/large?v=v2&px=999 "Confluence User id Change Error.jpg")![screenshot.2017-05-15 16.05.10.jpg](/t5/image/serverpage/image-id/1239iA20219EBA861C42E/image-size/large?v=v2&px=999 "screenshot.2017-05-15 16.05.10.jpg")![screenshot.2017-05-15 16.06.34.jpg](/t5/image/serverpage/image-id/1240iC21C7865C5BF4AFB/image-size/large?v=v2&px=999 "screenshot.2017-05-15 16.06.34.jpg")

Need your help on this.

Thanks

Nachu


Answers:
author: Katya Godneva
body: Hello,

this article is probably relevant:

<https://community.atlassian.com/t5/Confluence-questions/Correct-full-name-of-user-admin/qaq-p/74176>


Tags: user
Hi,Few weeks ago i upgraded confluence 4.0.3 to 6.1.1 and now i can't be able to Add new users.
Asked by karerainno:

While logged in on my wiki page i can do almost every thing but i can not be able to create new user to our Confluence. i can only view already registered users,neither edit them or Create new.

![Selection_120.png](/t5/image/serverpage/image-id/1237iAF4B63BAE714DD0C/image-size/large?v=v2&px=999 "Selection_120.png")


Answers:
author: Mirek
body: The question that should be answered here is which directory Confluence is using (internal/external) and if using external how it is connected to LDAP/AD (via Jira/Crowd or directly) .. then check is the connection read only or not since it might be that only from external (e.g LDAP) side it would be possible to manage users.
Get confluence page source HTML using scriptrunner
Asked by Dar Kronenblum:

Hi

I configured some drop down list on the confluence page and I would like to get the selected items in a script macro.

I tried to use page.getBodyAsString() function in order to get the selected options but it seems like this data doesn't appear in the result string

I wonder if there is a way to get the raw HTML of the page in order to get the selected data

thanks

Dar


Answers:
author: AnnWorley
body: You may view the XHTML storage format at the ellipsis on the top right "view storage format". Is this the raw data you are looking for?

![Screen Shot 2017-05-23 at 11.30.05 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/1480i7C4B893BBB5B530F/image-dimensions/930x471?v=v2 "Screen Shot 2017-05-23 at 11.30.05 AM.png")

comments: author: Dar Kronenblum
body: Thanks Ann!

I configured a drop dowm list macro in the page and the XHTML storage format don't show the selected item in this list (only the available options)

I wonder if there is a way to get this information

thanks

Dar


author: Dario
body: Hi [@Dar Kronenblum](/t5/user/viewprofilepage/user-id/671175)

I would like as well to get XHTML code from Confluence's page body. I need to create Heading tags using panel title as title inside them in order to be recognized from Table of Contents.

Do you know how to get the XHTML code using groovy script? In addition, once I get the XHTML code, do you know how to do the modification metioned?

Thank you in advance.

Dario


author: Nic Brough -Adaptavist-
body: If you do that, you will break the storage format - Confluence may not be able to work with the page at all any more.


Tags: confluence-app

confluence-development

scriptrunner
Confluence was how to implement in the edit page shows the effect of macro, and not preview or post
Asked by jingao:

Confluence was how to implement in the edit page shows the effect of macro,?and not preview or post to display the macro effect.


Answers:
author: Mirek
body: There are many macros that work only after publishing the page. That is by design since some data need to load e.g Include Page macro and I think that this cannot be changed.

Overall Confluence editor is WYSIWYG and most of the content in Edit mode looks same after publishing. There are some differences between Server and Cloud editors. Cloud version have a [new editor](https://www.youtube.com/watch?v=ZCLjhCK0HhM) experience that you can check and verify which is better.
How to retrieve Google Drive files by a Confluence plugin?
Asked by YJ Huang:

I want to create a Confluence plugin to display Google Drive files.

I found this(<https://developers.google.com/drive/v3/web/quickstart/java>) but it is developed with Gradle, not Maven which Confluence uses.

I wonder how to make the Google account window pop up by clicking a button, then select a Google account, and the Google files can be displayed in Confluence page.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@YJ Huang](/t5/user/viewprofilepage/user-id/158908) ,

you should use Google Drive REST Apis (<https://developers.google.com/drive/api/v2/reference>) within your Confluence plugin in order to communicate.

REST Apis are platform indipendent so they can be used from Confluence.

Hope this helps,

Fabio


Tags: app

atl-dev

developer

google-drive

sdk
How to show a gallery of all images within a space?
Asked by Patrick Thompson:

We are using concfluence cloud and want to have a preview or gallery of all images added to the space.

We can easily get the recently updated macro to show a list of changes however we want something much more visual.

Ideally the gallery maco would have an option to include all pages.

Thanks


Answers:
author: AnnWorley
body: I opened a suggestion ticket for our development team to add an option for the Gallery macro to display all the images in a space. Please vote for it so it will get more attention from the development team. You may also want to comment on the ticket to explain your use case in more detail. [As a user I would like the Gallery macro to display all images in a space](https://jira.atlassian.com/browse/CONFCLOUD-55499)

In the meantime, maybe your team could add a label to pages when they add the images they want on the preview page. The Gallery macro can display images based on labels.


Tags: confluence-cloud

gallery

space
Bitbucket new Design
Asked by weblebby:

Greetings,

I turned off Bitbucket's new design. I can not open it again, how can I open it?


Answers:
author: Eva Kasiak
body: Hi

you can try to enable back new features in the Lab section. Go to Settings/Integrations \& Features/Labs. If you will not see it there then probably you will need to wait until Atlassian rolls out to all users <https://blog.bitbucket.org/2017/04/11/bitbucket-cloud-gets-a-new-navigation-experience/>

comments: author: toremato
body: Thank you very much! Was struggling with enabling new "design" too. ;)


Tags: bitbucket
Confluence 5.10. Create page
Asked by Richard Bariny _Richardb953_:

Hello, I would like to create confluence page using Java code.  
I tried pageService / pageManager / draftManager / serviceCommand from   
<https://docs.atlassian.com/confluence/5.10.0/>

But no solution is working.   
I have a content which I can save into logged-in user drafts as a regular draft with content (visible in edit mode after open draft in confluence), but there is no way how to save a draft to new page from java code.  
If anybody knows how to create regular confluence page with ID and with content (i do not mean title, but regular contentBody) / or save existing draft into new page,   
Please tell me.

P.S. without using REST API I would like to do it with JAVA / Confluence API


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

did you try asking this question in the developer community?

<https://developer.atlassian.com/community>

This is rather a developer question. You'll find help there.

comments: author: Richard Bariny _Richardb953_
body: I did not. I am going to try. I have no clue there is another community blog only for developers.  
thanks very much


Tags: developer

draft

page
How can i create a dynamic links in confluence pages
Asked by Adithya Sri Kumar:

I am creating an exact wiki page and I am not able to get how to dynamic link the keywords in all pages. Fo example, I hyperlinked keyword "Customer" in one page and the word customer where eve it is in the space must have the word hyperlinked to the same landing page without me manually doing again. So if I link a word in one page, that word should be automatically linked to same word in other pages wherever it is in the space.


Answers:
author: AnnWorley
body: We have [shortcut links](https://confluence.atlassian.com/doc/configuring-shortcut-links-135903.html) in Confluence but they are global and not at the space level. Is that close to what you are looking for?

comments: author: Mary Connor
body: That looks like a mechanism for feeding a parameter into an external website. I tried setting it up for a non-parameterized link and it didn't work. Is there a trick?


author: Adithya Sri Kumar
body: I am not an administrator, I am only building the structure of the content and monitors what content goes inside the pages. But I don't have the administrator controls to set some shortcut links. Can you help me build dynamic content without administrator access?
How do i display the number of times a string appears on a confluence page?
Asked by Ray DR:

I have a large page with lists and I need to see how many times specific words appear on this page. Ideally I would have a section titled: # of xyz followed by the number of times it appears.  

Can I use this to embed the count on the specific page?  
<https://confluence.atlassian.com/confkb/how-to-count-the-number-of-times-a-word-appears-in-confluence-781194983.html>


Answers:
author: AnnWorley
body: You could use a SQL query similar to the one on the page you linked to calculate the count of the word but you would need to wrap the query in a macro somehow. Please see Davin Studer's answer on [Query external database and display results on confluence page](https://community.atlassian.com/t5/Answers-Developer-Questions/Query-external-database-and-display-results-on-confluence-page/qaq-p/466017)


Tags: html
Restrictions on Confluence Server trial license?
Asked by Bob Burgess:

I'm running a trial of Confluence Server.

I tried to add user groups and users, but there are no Add buttons. Is this expected in the Trial version? What other limitations should I expect?

Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: There are no restrictions on trials, the software is identical - they just expire and (mostly) stop working.

If you have no options on maintaining users, that suggests you might have connected it to an external user directory?

comments: author: Bob Burgess
body: Thanks for the quick reply.

I did try to connect to our Active Directory, but removed that connection after reading your reply. No change: no \[Add\] buttons for users or groups! Also tried restarting the Confluence service after removing the directory connection.

Any other ideas?

--Bob


author: AnnWorley
body: I have seen that behavior when the "External user management" box is checked in Administration\>Security Configuration.


author: Nic Brough -Adaptavist-
body: Yes, good call! That flag can be set when you have an external directory enabled, then if you remove the directory, the flag can remain set, disabling the internal options!


author: Bob Burgess
body: @Ann

Thank you! That was it exactly.

--Bob


Tags: administration

confluence-administration

trial
How to import XML File
Asked by Mike Reeves:

I have an XML export from another site and wish to import the file into Confluence so that Confluence renders as an editable wiki page. Is this possible?

Thanks.


Answers:
author: Vikas Bhatia
body: [@Mike Reeves](/t5/user/viewprofilepage/user-id/1132288) - Did you ever get this going? I'm interested in this also...


author: AnnWorley
body: Please let us know:

What kind of site was the XML generated from? Is it another Confluence instance or some other type of site?

comments: author: Mike Reeves
body: Hi Ann,

It's another site, you can see it here and the download for the XML:

<https://nvd.nist.gov/800-53>


Tags: import

xml
What tooling is Atlassian using to run the community.atlassian.com site?
Asked by JeffW:

For some reason, I can't seem to pinpoint if community.atlassian.com is using Confluence, or some third party tooling. It looks much more refined than even the Atlassian Documentation site. So the question is really more like can this be done with Confluence?


Answers:
author: Nic Brough -Adaptavist-
body: It's using the Lithium board software, which is totally different to Confluence.


author: Sam Hall
body: Hi Jeff - It's Lithium, not Confluence.

It's mentioned a few times here: <https://community.atlassian.com/t5/Feedback-Forum-discussions/Why-different-software-for-the-two-different-communities/m-p/460120>

*Edit: Fixed link*

comments: author: JeffW
body: That link seems to die - not sure what's wrong. Thanks for the answer though. Clears up some confusion.


author: Sam Hall
body: Fixed it now. Let me know if it doesn't work for you.


author: JeffW
body: Works now. Thanks!


Tags: community

feedback

feedback-forum
PostgreSQL Query for Downloading Attachments from Confluence
Asked by Ethan McDonald:

I recently had to download all the .swf file from our confluence site.  
The solution online sent me to a page that showed the attachments and then I had to click someting to download it.  
This gave me a direct link to every file I needed.

Below is the PostgreSQL query created to assist me in this task.

```
SELECT title, version, pageid, '?h?t?t?p?s?:?/?/your-server-here/?d?o?w?n?l?o?a?d?/?a?t?t?a?c?h?m?e?n?t?s/' || pageid || '/' || title || '?version=' || version as URLFROM content WHERE contenttype = 'ATTACHMENT' AND title like '%.swf' AND prevver IS NULL AND spaceid IS NOT NULL ORDER BY lastmoddate DESC
```

From here you could do all kinds of things like generate a CURL command and pull every file down.  
For me I just emailed the URL column to myself and clicked each link.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Ethan McDonald](/t5/user/viewprofilepage/user-id/721430) ,

what is your question?

Fabio


Tags: attachment

postgres
YouTrack and Confluence Cloud integration
Asked by Mike Lawson:

Hi,

Are there any plans to introduce this add-on to the Cloud version of Confluence? We are looking to move into the Cloud, but it may be dependent on this add-on being made available soon.

Thanks.


Answers:
author: Sam Hall
body: Hi Mike - This add-on? <https://marketplace.atlassian.com/plugins/youtrack.integration.plugin/server/support>

Might be worth contacting the vendor directly, using the [contact details listed on the marketplace](https://marketplace.atlassian.com/vendors/1211898/egor-malyshev).

In the meantime, I'll add tags to increase the chances that your question is seen by someone who knows.

comments: author: Mike Lawson
body: Hi Sam. Yes that is the one. I will contact him though I suspect that they may not do one as it may not be so easy to integrate.

Thanks for replying and for adding tags :)


author: Sam Hall
body: No problem. Pop the answer details here if you find out info. Always helpful for others with the same question.


author: Mike Lawson
body: Will do!


author: Dmt Lvovich Gudakov
body: Hi, Mike!

If you need YouTrack and Confluence Cloud integration you can vote for issue <https://youtrack.jetbrains.com/issue/JT-32837>, please.

comments: author: Mike Lawson
body: Hi there,

Thanks for that - I have voted for it.


Tags: addon-youtrack.integration.plugin

atlassian-marketplace

youtrack
Is it possible to prompt the user for comment on attachment when uploading?
Asked by Nick Simons:

Hello,

I am using the Attachment macro and was wondering if there is a way to prompt the user to add comments on their attachment when uploading a file.

I know the user can go into the Properties of the attachment and add a comment there. But I would like for them to just be prompted to do so during the upload process.

Thanks!

Nick S


Answers:
author: JP _AC Bielefeld Leader_
body: Not possible out of the box. Maybe there's an add on around the marketplace ..


Tags: attachment

comment

file

upload
PageId checking in Soy template
Asked by Vadim Kazanov:

I tried to customize my confluence notifications following the instructions here <https://confluence.atlassian.com/doc/customising-the-email-templates-168001822.html>  
I want to modify notification (page-edited-2.0.0.soy for example) for a single page, but can't find the way for checking PageId in a template. Just **{if $content.id ==** doesn't works.  
How should I construct expression to check page id correctly?  


Answers:
author: ?ukasz Modzelewski _TTPSC_
body: If you have an answer please post it :)

For development related topics please check: <https://community.developer.atlassian.com/>


Tags: notification

soy-templates
page restriction setting for group add
Asked by Anderson Hsu:

Dear Support Team,  
After add page restriction for group add, we found we must run rebuild index ,and then the setting can work . So we would like to make sure is there cron job for rebuild index?

![index.jpg](/t5/image/serverpage/image-id/1171i707A6F5568038830/image-size/large?v=v2&px=999 "index.jpg")  
And we also found when some group is removed at ldap , but the same group at the page restriction is still exist. Would it be possible to automatically remove the same group at the page restriction while the group was deleted at ldap?

![1.jpg](/t5/image/serverpage/image-id/1173i46D2A7B3C74E3D71/image-size/large?v=v2&px=999 "1.jpg")  
Thanks a lot.  
Best Regards, Anderson Hsu


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Anderson Hsu](/t5/user/viewprofilepage/user-id/626040) ,

reindexing is something that happens periodically so you don't need to perfom manually.

<https://confluence.atlassian.com/doc/scheduled-jobs-96567525.html>

Hope this helps,

Fabio
How can i get statistics on Confluence Searched words?
Asked by Yassine Mansour:

I would like to retrieve what my users are searching in my knowledge base. Hoy can i do that


Answers:
author: Suren Raj
body: Hi Yassine,

<br />

You may try Google Analytics Plugin for Confluence:

\* <https://marketplace.atlassian.com/plugins/com.go2group.plugins.confluence-ga/server/overview>


Tags: search
Why English title page, URL can't get ID, but directly display the English title, English title page
Asked by jingao:

Why English title page, URL can't get ID, but directly display the English title, Chinese title page can show ID


Answers:
author: AnnWorley
body: Nic is right, again. Here are more details:

[Confluence page URLs contain pageId instead of the page title](https://confluence.atlassian.com/confkb/confluence-page-urls-contain-pageid-instead-of-the-page-title-278692715.html)


author: Nic Brough -Adaptavist-
body: Confluence uses the page id when the title would generate a url that is not valid. It does the same with English titles if you put punctuation in them.
Include Page macro has broken
Asked by Jason Fitchew:

Added an Include Page macro yesterday and all was working fine. Looked at my page today (have changed nothing) and it is now showing "broken macro"!

I edited the page in order to re-add the "include page" macro but when you select this macro nothing appears on the page. Noticed other people have had this occur in the past and all of a sudden starts working again.

Have Atlassian coders been tinkering with things??


Answers:
author: Sh?rry Delich
body: I am having the same issue.
Issue with application links https
Asked by FG:

Having a strange thing here trying to link jira/conf to other jira/conf via https when the domain is diffrent but its only crashing on one way.

What I have is  
<https://jira.domain1.com> using \*.domain1.com cert (added as well jira.domain2.com to this keystore)  
<https://jira.domain2.com> using jira.domain2.com cert (added as well \*.domain1.com to this keystore)  

When I try try an application link from jira.domain1.com to <https://jira.domain2.com> it gives me DIRECTLY:  

No response was received from the URL you entered - it may not be valid. Please fix the URL below, if needed, and click Continue.  

but when I to the other way around it says as it shold first..   
You creat a link from ... to... and then I have I am administrator on both instances checkd.. and press continue ... and it tells me now it will go to the other end. It does .. and then we get the error again:

Unable to create reciprocal link.  
No response was received from the URL you entered - it may not be valid. Please fix the URL below, if needed, and click Continue.

Click Continue to be redirected back to <https://xxxxx.xxxxx.xxx>. Click Close to remain here.

tried the

PS E:\\temp\> java.exe SSLPoke xxxx.xxxx.xxx 443

from jira.domain1.com server

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE  
xception: unable to find valid certification path to requested target  
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)  
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)  
at sun.security.validator.Validator.validate(Unknown Source)  
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)  
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)  
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)  
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)  
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)  
at sun.security.ssl.Handshaker.processLoop(Unknown Source)  
at sun.security.ssl.Handshaker.process_record(Unknown Source)  
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)  
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)  
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)  
at sun.security.ssl.AppOutputStream.write(Unknown Source)  
at sun.security.ssl.AppOutputStream.write(Unknown Source)  
at SSLPoke.main(SSLPoke.java:31)  
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to reques  
ted target  
at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)  
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)  
at java.security.cert.CertPathBuilder.build(Unknown Source)  
... 16 more

According to our datacom dudes its wide open betweend this servers.  

Buy why does this work half the way?


Answers:
author: josh
body: Are these self-signed or CA certificates?