Adding JIT user provisioning capabilities to Microsoft Azure Active Directory (AD) requires Active Directory Premium. You must 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.
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:
- Navigate to Azure Active Directory > Enterprise applications and follow these steps:
- Click New application.
Click Create your own application.
This opens the Create your own application pane.Enter a name for your new app.
Ensure Integrate any other application you don’t find in the gallery is selected.- Click Create.
When the application's Overview page displays, the application is created. - Click Users and groups.
Click +Add user/group. Highlight your choice in the search bar, click Select, and click Assign.
Repeat as necessary to add users/groups.Click Single sign-on.
Select the SAML tile.
This opens the Set up Single Sign-On with SAML page.In section 1, provide the two values listed below. You can copy both values from the Lacework Console authentication settings.
- Identifier (Entity ID): https://lacework.net
Copy from Service Provider Entity ID - Reply URL (Assertion Consumer Service URL): https://YourLacework.lacework.net/sso/saml/login
Copy from Assertion Consumer Service URL
- Identifier (Entity ID): https://lacework.net
In section 2, add the following new claims with the indicated Name (use all caps) and Source attribute:
- 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 "*". Comma 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 "*". Comma separate multiple values. For information about using AD groups for Lacework access, see Create Groups in Azure Active Directory.
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:
- Navigate to the Azure home page and click Groups.
- Click +New group.
- For Group type, select Security.
- 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. - Select members for the group.
- Click Create.
- Create additional groups as needed.
Consider creating separate groups for admin and user access.
Now you can update the Lacework app to use these groups. Follow these steps:
- Navigate to the Lacework application.
- Click Single sign-on.
- In section 2, edit the following claims:
- LACEWORK ADMIN ROLE ACCOUNTS
- LACEWORK USER ROLE ACCOUNTS
- Add a claim condition with the following settings:
- User type: Any
- Scoped Groups: Select any group(s) 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 account(s) that will use this claim. For example, you have two accounts named Account1 and Account2. To use this claim for both accounts, you could enter "Account1,Account2". Or you can enter a wildcard "*".
Complete Authentication Setup in the Lacework Console
Return to the open Lacework Console SAML configuration page and follow these steps:
- Select Upload identity provider data and click Next.
- Type a descriptive name for Identity Provider.
- 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. - Enable the Just-in-Time User Provisioning option.
- 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:
- Navigate to the Lacwork application and click Single sign-on.
- 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.