User roles and keeping their IDs when using features I have defined some user roles and I'm assigning them to users through the rules module. I have created a feature with the rules and the roles and moved them to another site. My problem is that the user roles get new IDs and that the IDs are hardcodet in the exportet rules. Therefore the rules assigns wrong roles and I don't want to fix that each time I install the feature.

Can I somehow hardcode the user roles programatically and let the rules module work on them? Is there a better solution for the problem? 

It is more or less the same problem for taxonomies that also get assigned new IDs.
The Role Export module causes Role IDs to be hashes of Role Names — so the same Role Name will have the same Role ID on all sites.  Great in conjunction with Features.

For Taxonomies, the UUID Features module may be helpful.