Setting up Microsoft LAPS for Azure Active Directory
Lithnet Access Manager provides a convenient web-based interface for accessing local admin passwords that have been stored in Azure AD by Windows LAPS.
This guide assumes that you have the Windows LAPS agent deployed and configured appropriately. Test access to the LAPS passwords using the Azure portal first to make sure it is configured correctly.
This guide focuses on setting up support for Microsoft LAPS passwords stored in Azure Active Directory. See our other guide for passwords stored in Active Directory.
Step 1: Configure a new application in Azure AD
If you are using Azure AD authentication for AMS, you can reuse the app registration created for authentication. Skip to Step 2.
If you are not using Azure AD for authentication, or you'd like to create a separate application for the directory access, then follow these steps to create a new application in Azure AD.
Log into portal.azure.com with administrative credentials, select
All services
and selectAzure Active Directory
Select
App registrations
and clickNew application registration
Enter
Lithnet Access Manager
or another suitable application name, and selectAccounts in this organizational directory only (Lithnet only - Single tenant)
as the supported account typeLeave the
redirect URI
field blankClick
Register
Take note of the
Application ID
value, this is our client IDSave the settings
Take note of the Directory/Tenant ID from the main application page
From the
Certificates and secrets
page, clicknew client secret
, give your secret a name, and then take note of the value provided.
Step 2: Granting directory permissions
Log into portal.azure.com with administrative credentials, select
All services
and selectAzure Active Directory
Select
App registrations
and select your Application registration for Lithnet Access Manager.From the
API permissions
page, clickAdd permission
and grant the following API permissionsDevice.Read.All
Group.Read.All
Organization.Read.All
User.Read
DeviceLocalCredential.Read.All
Ensure that you have selected
Grant admin consent
for each item.
Step 3: Configure the service account details in Access Manager
Open the Lithnet Access Manager Service Configuration Tool
Select the
Directory configuration/Azure Active Directory
pagePress the
Add...
button to add a new tenant configurationAdd the client ID, secret, and directory/tenant ID in the fields provided
Save the tenant configuration
You may need to wait a minute or two for the secret and delegation to become active
Step 4: Assign access
The final step is to create an authorization rule, granting permission for your selected users and groups to access the LAPS passwords for the specified computers.
From the Authorization rules/Computers
page, select Add...
to create a new rule. Select the Azure AD tenant, device group, or computer you want to assign access to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.
Expand the Access control
section and select Edit Permissions...
to open the ACL editor.
When a computer is using Microsoft's Windows LAPS agent, and it is configured to store its password in Azure AD, then password rotation is not possible. Azure AD does not provide an API that AMS can use to indicate to the machine that the password should be rotated.
You can however use the built-in PostAuthenticationActions and PostAuthenticationResetDelay policy settings to trigger the password change after logon.
If you'd like to be notified when someone accesses a LAPS password, select the notification channels you'd like to send to for success and failure events.
Last updated