Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. On the Main tab in the management console, click Add under Users and Roles.
  2. Click Roles. This link is only visible to users with Security level permissions role. By default, the admin user has this permission enabled. See For more information about permissions in the relate topicson permissions, see Role-based Permissions.
  3. Click Add New Role. The following screen will open:
     
  4. Do the following:
    1. In the Domain list, specify the user store where you want to create this role. This list includes the primary user store and any other secondary user stores that are configured for your product. See the related topics for information on configuring user stores. For information on ow user stores (which are repositories storing information about users and roles) are set up and configured, see Configuring User Stores.
    2. Enter a unique name for this role.
    3. Click Next.
  5. Select the permissions that you want users with this role to have. See For more information about permissions in the related topics on permissions, see Role-based Permissions.
    Note that when you assign this role to a user, you can override the role's permissions and customize them for the user. 
  6. Select the existing users to whom this role should be assigned. You can also assign this role to users later, but if you are creating this role in an external user store that does not allow empty roles, you must assign it to at least one user. You can search for a user by name, or view all users by entering * in the search field.
  7. Click Finish.

...

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
languagehtml/xml
<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>

...

  1. Do the configuration changes indicated in the above section.
  2. 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 the UM_USER_ROLE table with the existing users after changing the admin and everyone role names. Also if you have changed the permission of everyone role, the UM_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.
    See
    •  For more information
    about setting up user stores
  3. After the changes, restart the server.

Related Topics

...

  1. .