Versions Compared

Key

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

...

Let's say you have an application data source already defined in server.xml (as shown in screenshot below), for which you want to implement this role based security. Follow the steps below:  

Image RemovedImage Added

  1. Go to UPM and find the SQL for Confluence add-on (Manage add-ons).
  2. Click the Configure button.
  3. To add a role based security datasource, use dataSource parameter. Refer to the screenshot below:

    Image RemovedImage Added

The new profile (in this case "rolebased") is available immediately. Test it on a page to ensure expected behavior.

...

Since select on "cwd_group" table is granted to bob, only the respective data is visible but not "cwd_user" table data.

 Image RemovedImage Added

  • If any other user (lets say random user who has no database role associated to thier own account/userid) tries to access the page: 

Since there is no role associated with this user, an error message will be shown.

Image RemovedImage Added