Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,716
Community Members
 
Community Events
177
Community Groups

Confluence Migration: How to Bulk Reviewing and marking email domains as trusted ?

Hello Community,

I am trying to migrate confluence spaces using Confluence Cloud Migration Assistant, but it's mandatory to review all the domains manually to migrate the spaces successfully.

I have around 2700 domains and it would take a lot of time to review them all. Is there a way to bulk review all the domains to save time and effort? 

Attached Screenshots

Thank you,Domains2.jpegDomains.jpg

 

2 answers

1 accepted

2 votes
Answer accepted
Darryl Lee Community Leader Jan 16, 2023

Hi, I was able to accomplish by running a zsh for loop with Bob Swift's CLI:

for x in (`cat domainlist.txt`)
do
acli jira --action renderRequest --requestType PUT --request '/rest/migration/latest/email/domain-rules' --requestParameters "{\"domainName\":\"$x\",\"rule\":\"TRUSTED\"}" --contentType JSON
done

(I generated domainlist.txt by dumping a list of users and emails and then grepping for any domains that were not my domain, and then using cut to remove everything but the domain name.)

Darryl Lee Community Leader Jan 16, 2023

(Note that I only use Bob Swift's CLI because trying to do all the authentication handshaking stuff with Python always makes my head hurt, and all I have to do with CLI is use my username and password or Personal Access Token. :-}

Like Kalin U likes this

And here is a short way to produce domain list from PostgreSQL database:

echo "select distinct (string_to_array(email_address, '@'))[2] from cwd_user" | psql --tuples-only --no-align -U confluence -h localhost confluence > domainlist.txt

 

 

Like # people like this
0 votes
Kalin U Rising Star Jan 15, 2023

Did the Atlassian support suggest another solution?

I didn't contact Atlassian support yet

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events