I am using Confluence data center to generate users invitation link using bash script
<!doctype html><html lang=en><head><title>HTTP Status 401 – Unauthorized</title><style type=text/css>body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1><hr class=line /><p><b>Type</b> Status Report</p><p><b>Message</b> Basic Authentication Failure - Reason : AUTHENTICATION_DENIED</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class=line /><h3>Apache Tomcat/9.0.54</h3></body></html>
There is no invitation endpoint in the API.
You can create a user via the API and have them receive a notification.
See api related topic here: user-createUser
The only API that had this option was bitbucket.
https://support.atlassian.com/bitbucket-cloud/docs/invitations-resource/
But only in API version 1, and that removed since 2019
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam
Thank You for your response.
Is there a way to regenerate user invitation link in confluence data center(8.5.5) automatically using bash script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No there is none.
The only option is as I mentioned before, create the new users via the API and have the sent notification on "true".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi - I hope that you are Doing good !!
Looks authentication credentials provided in your Bash script are not being accepted by Confluence Data Center
Kindly check the correctness of your credentials and ensure that the API token has been generated correctly and retry
Hope this helps and happy to assist further !!
Thank you very much and have a fantastic day!
Warm regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response.
But is the endpoint correct to generate the invitation link?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @rahul rajeev ,
Do you get the 401 error for other REST API endpoints?
How did you get the 'rest/invitation/1.0/invitation-link' endpoint? It is not listed in the REST API docs https://docs.atlassian.com/ConfluenceServer/rest/8.8.0/ for COnfluence Data Center/Server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrii Maliuta
Thank you for your response.
Someone told me I could use this endpoint to invite. Is there any other way to regenerate user invitation link in confluence data center(8.5.5) automatically using bash script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Endpoint is certainly used to create invitation links for users
This endpoint giving hard time and not supporting in the process regenerating invitation links for existing users automatically
Try to regenerate invitation links for existing users automatically using a bash script which is a bit complex approach while comparing toward the API endpoint.
At this time we can treat this as a first level conclusion !!
If you intend to move forward, we can also work towards it.
Warm regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response. But at this point I dont want to create for existing users.
I just want to generate new invitation links weekly for new users
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - Endpoint looks perfect
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The endpoint is not working and I couldnt find in the Confluence documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.