Migration of Custom Roles and Users from one space to other

I am just looking out the different ways to migrate/propagate users and roles (custom roles) from one space to other .
Is there any APIs provided by Contentful to do that ?

Hi @kmohan,

Whereas we do give access to your custom roles through our Management API:

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/roles

In what regards users, you can’t actually “recreate” them in, say, a different organization. However, you can programmatically manage your space memberships through the API:

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/space-memberships/space-memberships-collection

In the end of the day, whereas these endpoints are available through our API, we don’t have support through any of our migration tools to directly migrate them so, depending on your use case, it’d require some additional work:

Thanks for replying . Tried this and it is working fine for my use case :slight_smile: