How to move all profiles after migrating master server from centos 7 to rocky

We have migrated our master server from centos 7 to Rocky. So s there a way to move all profiles to our new rocky master

Can someone help on this how to move all user profiles to our new rocky master

By “profiles” I assume you mean “hosts”.
What needs to be done highly depends on what you actually need to move over and which features you are using. So if you elaborate more, we might be able to help you. But in the end, you will probably need to do some scripting yourself to move the parts you care about over.

Hi Areyus, we need a way to move all users from older foremanUI to new foremanUI.

after migration we are finding difficulty to create each user in foreman console and giving proper roles assigned. Is there any way to do to export and import user profiles from older foreman server to migrated one.

There is no plain export/import function. You will have to develop something yourself. Depending on what you are most comfortable with, there are several ways you could try it:

  • If you are familiar with ansible, you might find the Foreman ansible collection helpful. There is a dedicated resource_info module to read information from a Foreman instance which can be then be used in other run targeting a different instance.
  • There is also the possibility to do this via the API. You can find documentation of the API on your Foreman host at
  • If you are more of a shell person, you could resort to hammer for reading and writing the required information.

In any case, you will need to migrate both the roles as well as the users themself.
I hope this helps :slight_smile: