Update before the first startup - Recommended(recommended)You can change the default role names (admin and everyone ) before starting up the WSO2 Identity Server. To do this, change the following elements in the <PRODUCT_HOME>/repository/conf/user-mgt.xml file: - Change
<AdminRole>admin</AdminRole> to <AdminRole>New role name </AdminRole> . - Change
<EveryOneRoleName>everyone</EveryOneRoleName> to <EveryOneRoleName>New role name</EveryOneRoleName> .
Code Block |
---|
| <Configuration>
<AdminRole>admin</AdminRole>
<AdminUser>
<UserName>admin</UserName>
<Password>admin</Password>
</AdminUser>
<EveryOneRoleName>everyone</EveryOneRoleName> <!-- By default users in this role sees the registry root -->
<Property name="dataSource">jdbc/WSO2CarbonDB</Property>
<Property name="MultiTenantRealmConfigBuilder">org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder</Property>
</Configuration> |
Update after the product is used for sometime - Advanced Configurationsometime (advanced configuration)If you have already updated the role names before the first startup of the product, these steps are not necessary. The following steps guide you through updating the role names after you have used the product for some time. - Make the configuration changes indicated in the above section.
- Do the following user store level changes for existing users:
If you are connected to the JDBCUserStoreManager , update the UM_USER_ROLE table with the existing users and the new role names that you defined in place of the 'admin' and 'everyone' roles. If you have changed the permissions of the 'everyone' role, update the UM_ROLE_PERMISSION table the permissions of the new role. Info |
---|
The schema can be located by referring to the data source defined in the user-mgt.xml file. The data source definition can be found in the repository/conf/datasources/master-datasources.xml file. |
- If you are connected to the
ReadWriteLdapUserStoreManager, populate the members of the previous admin role to the new role under Groups.
- After the changes have been made, restart the server.
|