It does say in the docs:
Caution:
- Admin users and API tokens are not exported.
Its not true. It does export all of that. How can i prevent it being exported?
It does say in the docs:
Caution:
Its not true. It does export all of that. How can i prevent it being exported?
I can actually see in the code base export command these lines:
entities: [
{
filter(entity) {
return !DEFAULT_IGNORED_CONTENT_TYPES.includes(entity.type);
},
},
],
And the ignored types are:
const DEFAULT_IGNORED_CONTENT_TYPES = [
'admin::permission',
'admin::user',
'admin::role',
'admin::api-token',
'admin::api-token-permission',
'admin::transfer-token',
'admin::transfer-token-permission',
'admin::audit-log',
];
my export command is:
strapi export --no-encrypt --only content
All the supposed entities in the ignore array are still exported!
turns out that strapi version 4.10.6 did export admin entities and 4.11 does not - if anybody cares
It is better for security reasons. Nice to know they fixed it.
Is this also true for the data transfer
command?