...
The default role names (admin
and everyone
) can be changed before starting the WSO2 product by editing <PRODUCT_HOME>/repository/conf/user-mgt.xml
. See For more information about configuring on configuring the system administrator, see Configuring the System Administrator.
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> |
...
- Do the configuration changes indicated in the above section.
- You need to do the following user store level changes for existing users if you have changed the role names as mentioned earlier.
If you are connected to
JDBCUserStoreManager
you need to update theUM_USER_ROLE
table with the existing users after changing theadmin
andeveryone
role names. Also if you have changed the permission ofeveryone
role, theUM_ROLE_PERMISSION
has to be updated with the permissions to 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 under
<PRODUCT_HOME>
/repository/conf/datasources/master-datasources.xml
.- If you are connected to
ReadWriteLdapUserStoreManager
, you need to populate the members of the previous admin role to the new role under the Groups.
- For more information
- , see Configuring User Stores.
- After the changes, restart the server.