PowerBroker for Unix & Linux (PBUL), BeyondTrust’s gold-standard solution for Unix/Linux privilege management, comes with a very powerful and flexible Policy Engine that enables organizations to satisfy even the most complex privileged access requirements. In this blog, I will explain how that Policy Engine leverages an API for third-party solutions, such as cloud applications and DevOps tools, to enable full orchestration across an environment, in this case – Okta. With PowerBroker, it’s possible to interface with Okta for both step-up authentication and to verify that users are properly authorized via a Role, Group, or a specific permission before allowing them to execute a specific command on a specific server. If an administrator wants to issue a command to restart a server instance in a cloud or DevOps environment, the PBUL Policy Engine can first verify that the user is a member of the appropriate permission Group, and that the user is authorized for the specific server instance. Other conditions can also be included, like time of day, the day of the week, the user’s location, and any other third-party solution scripted through PBUL policy. [caption id="attachment_26368" align="alignnone" width="650"]Step-up authentication for the useradd and userdel commands. 2- Okta Vrify Push is selected for both.[/caption] [caption id="attachment_26367" align="alignnone" width="292"]Okta mobile application and Push Verify task to Approve.[/caption] To see how this works, let’s look at the example below. First, we need to define a couple of sample groups in Okta. Our sample user, Sally Duncan, is a member of the DevOps Group. The groups are shown below (not her membership): Then, we use a simple test script (okta_test.sh) to our PowerBroker policy:
## The following user, sally.duncan, is used to test Okta query.
 if (user in { "sally.duncan" } && basename(command) in { "okta_test.sh","okta_test"}) {
 # do not allow these commands to be delegated
 print ("user called okta_test.sh");
 if (basename(command) in { "okta_test.sh","okta_test"}) {
print ("command is okta_test.sh");
include '/etc/pb/okta_functions.conf';
 #print("We are now using print in poc20 policy for Okta");
TEST=split(OktaDATA, "\n");
for Lines in TEST {
TEST2=split(Lines, ",");
 while ( COUNTER <= COUNT2 ) {
 if ( TEST2[COUNTER] == "DevOps" ) {
 print("Congratulations - you are a member of the DevOps Group in Okta, so you are authorized to execute this command");
 } # End while
} # End for
 #reject("This is a restricted command okta_test.sh -- '" + basename(command) + "'.");

When you execute the script as a part of a “test” policy, you are able to determine the Okta group membership as shown below: This is a simple example, but it demonstrates three very important things
  1. The power of the PowerBroker for Unix & Linux scripting language to integrate into third-party solutions.
  2. The integration from PowerBroker for Unix & Linux to support group membership of Okta users.
  3. The support of PowerBroker for Unix & Linux in DevOps and Cloud environments in support of next-generation technologies.
If you would like more information on how BeyondTrust can support Okta and next-generation initiatives, contact us today. You can also learn more about our technology partners. Related Resource Protecting Privileged Accounts & Securing Single Sign-On with Okta and BeyondTrust (data sheet)