When you run the strapi transfer command, is it supposed to transfer users and roles? When I try and transfer from my server to local machine (or the other way around) it says items are transferred in the output, but the user roles and users are nowhere to be seen, and all of the content is missing the user that created/updated it.
Is this supposed to be the case or have I set something up wrong?
This topic has been created from a Discord post (1282746900683948032) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
Users and roles don’t get transferred
Thanks for the response, Is there any way to get them to transfer? it makes the transfer process useless in my case since I would have to re enter all of the details each time to make sure each user can’t see each others data. Or is there a way to add the permissions back manually?
ive seen the config plugin but that only transfers the roles and not users. So it still doesn’t maintain ownership on the data itself
Not that I know of. Only way to clone the data exactly as is on the remote is to do a db and strapi-config dump, them import them locally
Don’t worry, I found that you can just do an SQL dump and it maintains all the user data too
thanks for the responses though it saved me a lot of time
Admin users don’t get transferred (nor do transfer tokens or I think api tokens) but normal users-permissions users and roles should
Really?! That’s never been the case as far as I can remember. I’ll try again tomorrow.
Yeah it was an intentional decision by us as DTS’s primary use case (why we built it) was for data ingress/egress from Strapi Cloud.
We do have some future design plans for additional controls, options, and even custom provider packages for it but haven’t had time to implement them yet.
(There is also a very unstable, not documented scripting API for it)
The plan was to eventually allow users to filter or select specific data (even down to single entries) to export/import/transfer and allow for custom providers for say easy migration from other CMS frameworks to (or away) from Strapi.
Maybe also utility providers like say a faker.js source provider to rapidly seed some test data.
I just tested a transfer from one of our instances running 4.25.7 to a locally docker strapi and can confirm
- all collections / components / data were transferred (I excluded files though)
- no users or roles are transferred: strapi shows the default Author / Editor / Super Admin roles.
I’d like to bump to 4.25.10 because, strangely enough, recent transfers to clean instances would fail due to an error and I saw there was a possible fix in 4.25.10 for it yet today somehow it worked:thinking: but I’m also waiting for strapi-community/strapi-provider-upload-google-cloud-storage 4.10.6 to be published to see if I can bump to node 20 at the same time
the 4.25.10 fix is an experimental one we are testing that helps to manage the websocket connections a bit better and prevent sockets from overlaping (previously in some cases a new one would open before the last one closed)