diff --git a/configuration.module b/configuration.module
index 90ca5d3..38b0f58 100644
--- a/configuration.module
+++ b/configuration.module
@@ -84,6 +84,7 @@ function configuration_configuration_handlers() {
     'views'        => '\Drupal\configuration\Config\ViewConfiguration',
     'page_manager' => '\Drupal\configuration\Config\PageManagerHandlerConfiguration',
     'wysiwyg'      => '\Drupal\configuration\Config\WysiwygConfiguration',
+    'role_export'  => '\Drupal\configuration\Config\RoleConfiguration',
   );
 
   return $handlers;
diff --git a/lib/Drupal/configuration/Config/RoleConfiguration.php b/lib/Drupal/configuration/Config/RoleConfiguration.php
new file mode 100644
index 0000000..6a738de
--- /dev/null
+++ b/lib/Drupal/configuration/Config/RoleConfiguration.php
@@ -0,0 +1,88 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\configuration\Config\RoleConfiguration.
+ */
+
+namespace Drupal\configuration\Config;
+
+use Drupal\configuration\Config\Configuration;
+use Drupal\configuration\Utils\ConfigIteratorSettings;
+
+class RoleConfiguration extends Configuration {
+
+  public static function isActive() {
+    return module_exists('role_export');
+  }
+
+  static public function getComponentHumanName($component, $plural = FALSE) {
+    return $plural ? t('Roles') : t('Role');
+  }
+
+  public function getComponent() {
+    return 'role';
+  }
+
+  static public function supportedComponents() {
+    return array('role');
+  }
+
+  public function findRequiredModules() {
+    $this->addToModules('role_export');
+  }
+
+  /**
+   * Returns all the identifiers available for this component.
+   */
+  public static function getAllIdentifiers($component) {
+    $identifiers = array();
+    foreach (role_export_roles() as $role) {
+      if (!empty($role->machine_name)) {
+        $identifiers[$role->machine_name] = $role->name;
+      }
+    }
+    return $identifiers;
+  }
+
+  protected function prepareBuild() {
+    foreach (role_export_roles() as $role) {
+      if ($role->machine_name == $this->getIdentifier()) {
+        $this->data = $role;
+        unset($role->rid);
+        break;
+      }
+    }
+    return $this;
+  }
+
+  public function saveToActiveStore(ConfigIteratorSettings &$settings) {
+    $role = $this->getData();
+    if (!empty($role->machine_name) && $existing = db_query("SELECT rid FROM {role} WHERE machine_name = :machine_name", array(':machine_name' => $role->machine_name))->fetchField()) {
+      $role->rid = $existing;
+    }
+    user_role_save($role);
+    $settings->addInfo('imported', $this->getUniqueId());
+  }
+
+  public static function alterDependencies(Configuration $config, &$stack) {
+    if ($config->getComponent() == 'permission') {
+      $data = $config->getData();
+      if (!empty($data['roles'])) {
+        $role_objects = db_select('role', 'r')
+                        ->fields('r', array(
+                          'machine_name',
+                          'rid',
+                        ))
+                        ->condition('name', $data['roles'], 'IN')
+                        ->execute();
+        foreach ($role_objects as $role_object) {
+          if ($role_object->rid > 2 && !empty($role_object->machine_name)) {
+            $role_config = ConfigurationManagement::createConfigurationInstance('role.' . $role_object->machine_name);
+            $config->addToDependencies($role_config);
+          }
+        }
+      }
+    }
+  }
+}
diff --git a/tests/configuration_test.info b/tests/configuration_test.info
index 377360b..6a4703a 100644
--- a/tests/configuration_test.info
+++ b/tests/configuration_test.info
@@ -12,6 +12,7 @@ files[] = handlers/TestMenuConfiguration.test
 files[] = handlers/TestFieldConfiguration.test
 files[] = handlers/TestVariableConfiguration.test
 files[] = handlers/TestPermissionConfiguration.test
+files[] = handlers/TestRoleConfiguration.test
 
 files[] = handlers/views.test
 files[] = handlers/vocabularies.test
diff --git a/tests/handlers/TestRoleConfiguration.test b/tests/handlers/TestRoleConfiguration.test
new file mode 100644
index 0000000..db00767
--- /dev/null
+++ b/tests/handlers/TestRoleConfiguration.test
@@ -0,0 +1,98 @@
+<?php
+
+class TestRoleConfiguration extends ConfigurationHandlerBaseTestCase {
+
+  /**
+   * Implementation of DrupalWebTestCase::setUp().
+   */
+  public function setUp($modules = array()) {
+    global $base_url;
+
+    if (empty($modules)) {
+      parent::setUp(array(
+        'configuration',
+        'role_export',
+      ));
+    }
+    else {
+      parent::setUp($modules);
+    }
+  }
+
+  /**
+   * Test info.
+   */
+  public static function getInfo() {
+    return array(
+      'name' => t('Handler: RoleConfiguration'),
+      'description' => t('Test the configuration API for role configurations'),
+      'group' => t('Configuration'),
+    );
+  }
+
+  /**
+   * Returns an array of configurations to import.
+   */
+  protected function configToImport() {
+    return array('role.developer');
+  }
+
+  /**
+   * Returns an array of configurations to export.
+   */
+  protected function configToExport() {
+    return array('role.my_custom_role');
+  }
+
+  /**
+   * Returns an array of configurations to modify and check for modifications.
+   */
+  protected function configToModify() {
+    return array('role.developer');
+  }
+
+  /**
+   * Return TRUE if the configuration is modified in the active store.
+   */
+  protected function isModified($config) {
+    $modified = FALSE;
+    foreach (role_export_roles() as $role) {
+      if ($role->machine_name == 'developer') {
+        $modified = $role->name == 'Modified';
+        break;
+      }
+    }
+    return $modified;
+  }
+
+  /**
+   * Return TRUE if all the configurations defined in configToImport were saved
+   * into the active store.
+   */
+  protected function savedInActiveStore() {
+    return 'developer' == role_export_role_name_exists('developer');
+  }
+
+  /**
+   * This function creates the configurations that will be exported by
+   * configuration management.
+   */
+  protected function createConfigToExport() {
+    $data = (object) array(
+      'name' => 'My Custom Role',
+      'weight' => '3',
+    );
+    user_role_save($data);
+  }
+
+  /**
+   * Perform changes in the configuration and save those changes into the active
+   * store.
+   */
+  protected function modifyConfiguration() {
+    $role = user_role_load_by_name('Developer');
+    $role->name = 'Modified';
+    $role->machine_name = 'developer';
+    user_role_save($role);
+  }
+}
diff --git a/tests/test_configs/role.developer.inc b/tests/test_configs/role.developer.inc
new file mode 100644
index 0000000..51a84ad
--- /dev/null
+++ b/tests/test_configs/role.developer.inc
@@ -0,0 +1,19 @@
+<?php
+/**
+ * @file
+ * role.developer.inc
+ */
+
+$data = (object) array(
+  'name' => 'Developer',
+  'weight' => '4',
+  'machine_name' => 'developer',
+);
+
+$dependencies = array();
+
+$optional = array();
+
+$modules = array(
+  0 => 'role_export',
+);
