Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Granting user access by server group or host – scoped roles


In this recipe, you will learn how to grant access to a user only in a specific server-group or host. This is available only in the domain mode, obviously. This feature takes the name of scoped roles, and it comes in very handy when you need to share your environment with multiple teams such as development teams. This way, every team can actually work on its server group or dedicated host, without interfering with the other server groups or hosts.

Getting ready

To get started, let's first create an ad-hoc folder to run our WildFly. In a terminal window enter the following commands:

$ cd $WILDFLY_HOME
$ cp -a domain rbac-dmn-scp-roles

Now it's time to run our WildFly.

How to do it…

  1. Open a terminal window and execute the following commands:

    $ cd $WILDFLY_HOME
    $ ./bin/domain.sh -Djboss.domain.base.dir=rbac-dmn-scp-roles
  2. Once started, connect to the CLI in a new terminal window and switch to the RBAC provider, as we did in the previous recipe...