Is it possible to specify any specific role for every user / group ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.2.0
Issue
- Is there any way or workaround to specify any specific role for every user ?
- Why the below configuratrion is not working ?
<access-control provider="rbac">
<role-mapping>
<role name="SuperUser">
<include>
<user name="*"/>
</include>
</role>
</role-mapping>
</access-control>
Resolution
- "include-all" option can be used to specify any specific role for every user / group. It will provide access to all the users just like the use of "*".
<access-control provider="rbac">
<role-mapping>
<role name="SuperUser" include-all="true"/>
</role-mapping>
</access-control>
- The following CLI command can be used to configure the same :
/core-service=management/access=authorization/role-mapping=SuperUser:write-attribute(name=include-all,value=true)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
