Map Jboss User to Roles

Follow below steps To Map Users to Roles :
jbadmin ==> Administrator
jbdeploy ==> Deployer
Step 1:
To Configure jbdeploy to give it to the Developer :
This system is currently configured to use simple access controls, which will not utilize changes made in this section for roles. In order to utilize role mappings
that you configure in this section, you will need to enable role based access controls from the Command Line Interface (CLI) using the following command:

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>jboss-cli.bat -c --controller=
[domain@ /] /core-service=management/access=authorization:write-attribute(name=provider,value=rbac)
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    "result" => undefined,
    "server-groups" => undefined
[domain@ /]

Step 2:
From the console go to administration and add user and map role as per requirement .
Step 3 :After mapping users to roles below is the tag updated in Domain.xml

        <access-control provider="rbac">
                <role name="SuperUser">
                        <user name="$local"/>
                        <user name="jbadmin"/>
                <role name="Administrator">
                        <user name="jbadmin"/>
                <role name="Deployer">
                        <user name="jbdeploy"/>

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *