Support Questions

Find answers, ask questions, and share your expertise

Copy users from Ambari 2.6 to Ambari 2.7


Hello community,

I would like to know if it is possible to copy Ambari 2.6 users to Ambari 2.7.

If yes, how can I do this?

Thanks in advance


@Christos Stefanopoulos,

Do you mean the Ambari users? I'm not aware of any export/import of users. You can do below steps

Get users from cluster1

curl -iv -u admin:admin http://{ambari-host}:{ambari-port}/api/v1/users

Post them to cluster2 using some default password and ask them to change again

curl -iv -u admin:admin -H "X-Requested-By: ambari"-X POST -d '{"Users/user_name":"username","Users/password":"defaultpwd","Users/active":"true","Users/admin":"true/false"}' http://{ambari-host}:{ambari-port}/api/v1/users

You can write a script to read from the 1st API and pass it to 2nd API


@Aditya Sirna

Thank you for your reply.

Yes I mean ambari users.

Unfortunately this is not working.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.