Skip to main content

Azure Active Directory JIT

You need an Active Directory Premium account to add JIT user provisioning capabilities to Microsoft Azure Active Directory (AD). Sign in to the Lacework Console as an administrator and to the Azure portal using your Azure Active Directory administrator account. This process requires you to create a non-gallery application in Azure.

For a more detailed explanation of configuring SAML in Azure AD, see the Microsoft documentation:
Configure single sign-on to applications that are not in the Azure Active Directory application gallery.

Set Authentication in the Lacework Console

Before creating the Azure application, sign in to the Lacework Console and navigate to Settings > Authentication > SAML. If you have OAuth enabled, you must disable it before enabling SAML. Keep this window open.

Ensure that you assign a company name for each user that you add to the SAML login.

Create the Lacework Application in Azure Active Directory

In a separate window, sign in to Azure AD. To create a Lacework application, follow these steps:

  1. Navigate to Azure Active Directory > Enterprise applications and follow these steps:
  2. Click New application.
  3. Click Create your own application.
    This opens the Create your own application pane.
  4. Enter a name for your new app.
    Ensure Integrate any other application you don’t find in the gallery is selected.
  5. Click Create.
    When the application's Overview page displays, the application is created.
  6. Click Users and groups.
  7. Click +Add user/group. Highlight your choice in the search bar, click Select, and click Assign.
    Repeat as necessary to add users/groups.
  8. Click Single sign-on.
  9. Select the SAML tile.
    This opens the Set up Single Sign-On with SAML page.
  10. In section 1, provide the two values listed below. You can copy both values from the Lacework Console authentication settings.
  11. In section 2, add the following new claims with the indicated Name (use all caps) and Source attribute: For information on Lacework attributes, see Set Lacework Attributes.
    • FIRST NAME and user.givenname
    • LAST NAME and user.surname
    • COMPANY NAME and user.companyname
    • LACEWORK ADMIN ROLE ACCOUNTS and the Lacework account(s) the application will access with the admin role.
      For example "account1" or "account1,account2" or "*". Use a comma to separate multiple values. For information about using AD groups for Lacework access, see Create Groups in Azure Active Directory.
    • LACEWORK USER ROLE ACCOUNTS and the Lacework account(s) the application will access with the user role.
      For example "account1" or "account1,account2" or "*". Use a comma to separate multiple values. For information about using AD groups for Lacework access, see Create Groups in Azure Active Directory.
  12. If your Lacework account is enrolled in a Lacework organization, add attribute statements with the following names and example values:
    • Lacework Organization Admin Role - true
    • Lacework Organization User Role - null (if you set Organization Admin Role to true.)
  13. In section 3, download and save the Federation Metadata XML file.

Create Groups in Azure Active Directory

(Optional) You can create groups in Azure AD and use them to assign different access to Lacework accounts. To create groups, follow these steps:

  1. Navigate to the Azure home page and click Groups.
  2. Click +New group.
  3. For Group type, select Security.
  4. Name the group.
    For example, you can choose a name that describes the group's access to a Lacework account, such as Account1 Admin or Account1 User.
  5. Select members for the group.
  6. Click Create.
  7. Create additional groups as needed.
    Consider creating separate groups for admin and user access.

If you have multiple sub-accounts configured within your organization and would like to grant certain team members access to specific sub-accounts, use these steps:

  1. Navigate to the Lacework application in Azure.

  2. Click Single sign-on.

  3. In the Attributes and Claims section (panel 2), edit the following claims:

    • LACEWORK ADMIN ROLE ACCOUNTS
    • LACEWORK USER ROLE ACCOUNTS
  4. Add a claim condition with the following settings:

    • User type: Any

    • Scoped Groups: Select the groups that will use this claim. For example, the LACEWORK ADMIN ROLE ACCOUNTS claim should have groups set up for admins. The LACEWORK USER ROLE ACCOUNTS claim should have groups set up for users.

    • Source: Attribute

    • Value: Enter the Lacework accounts that will use this claim.

      Example 1 For example, you have a number of users that only need access to one sub-account within Lacework. Enter the sub-account name in this value field.

      Example 2 For example, you have two accounts named Account1 and Account2. To use this claim for both accounts, enter "Account1, Account2". Or, enter * (wildcard).

Finish Authentication Setup in the Lacework Console

Return to the open Lacework Console SAML configuration page and follow these steps:

  1. Select Upload identity provider data and click Next.
  2. Type a descriptive name for Identity Provider.
  3. In Upload Identity Provider Meta Data File click Choose File and select the previously saved Azure metadata file.
    The fields should be populated and you should see confirmation that the metadata included a certificate.
  4. Enable the Just-in-Time User Provisioning option.
  5. Click Save.

When a user logs in, a profile (with the specified privileges) is added in only the accounts that are specified.

If the user has organization-level privileges, a profile (with the specified privileges) is added in each account that is part of the organization, accounts are not created.

Test the Application

To test the application, return to Azure AD and do the following:

  1. Navigate to the Lacework application and click Single sign-on.
  2. Go to section 5 and click Test.

You can also test the application by logging in to the Lacework Console as the user associated with the application during setup.