Cloud Integration: Google Cloud IAM + PowerBroker for Unix & Linux for Authorization and Command Control

Michel Bluteau, Sr. Sales Engineer
July 31st, 2018

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, Google Cloud.

With PowerBroker, it’s possible to interface with Google Cloud IAM in order 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 Google Cloud, 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.

To see how this works, let’s look at the example below. First, we need to define a couple of sample groups in Google Cloud IAM. Our sample user, Adam Arnold, is a member of the Cloud Container Builder Editor Group. The groups are shown below (not his membership):

Google Cloud IAM

Then, we use a simple test script ( to our PowerBroker policy:

##  The following user, adam.arnold, is used to test gcloud query.
    if (user in { "adam.arnold" } && basename(command) in { "","gcloud_test"}) {
        # do not allow these commands to be delegated
        print ("user called");
    if (basename(command) in { "","gcloud_test"}) {
print ("command is");
include '/etc/pb/gcloud_functions.conf';
TEST=split(gcloudDATA, "\n");
for Lines in TEST {
TEST2=split(Lines, ",");
  while ( COUNTER <= COUNT2 ) {
    if ( TEST2[COUNTER] == "roles/cloudbuild.builds.editor" ) {
    print("Congratulations - you are a member of the DevOps Group(roles/cloudbuild.builds.editor), so you are authorized to execute this command");
  } # End while
} # End for
        #reject("This is a restricted command -- '" + basename(command) + "'.");

When you execute the script as a part of a “test” policy, you are able to determine the Google Cloud IAM group membership as shown below:

While this is a simplistic sample, it demonstrates:

  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 Google Cloud IAM 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 Google Cloud and next-generation initiatives, contact us today. You can also learn more about our technology partners/partnerships.

Michel Bluteau, Sr. Sales Engineer

Michel has been interfacing with many organizations in different verticals around the world, over the last decade, trying to capture Requirements and Use Cases in Identity Management, Compliance, and more recently Privileged Account Management. Michel’s expertise with various platforms including SAP, ServiceNow, .NET and Java, allows him to contribute to integration and share his experience and solutions. Recently, Michel has also been focusing on the User Experience and how to leverage Web Services API made available more and more for both on-premises and cloud based applications and platforms.