User Group Source plugins allow you to add roles to a user when the user logs in.


Create a user group source plugin and install it like other Rundeck plugins.
When a user logs in, your plugin will be called with the user's username and will add any roles you have designated to the user.


To configure your plugin you can add configuration values to the framework scope.

Framework scope property definition in framework.properties


Please note you cannot configure this plugin at a project level because it executes before any project information is applicable.

Java Plugin Type

Script Plugin Type

Roles will be picked up from the script between the markers ==START_GROUPS== and ==END_GROUPS==.
Echo one role name per line.

#!/usr/bin/env bash

echo "==START_GROUPS=="
echo "role1"
echo "role2"
echo "==END_GROUPS=="