You can import the last sign-in timestamp for users from Azure AD into eAdm. This data is valuable for creating automated rules, such as downgrading Microsoft 365 licenses that are no longer in use, which can lead to significant cost savings.
Once the configuration is complete, the last logon timestamp will be imported and available in the user attribute AzureAdLastLogon.
Configuration
To set up the import, you must first grant the appropriate permissions in your Azure AD portal.
-
Sign in to the Azure Portal with an administrator account.
-
Go to Azure Active Directory.
-
Go to App Registrations.
-
Search for your eAdm (e.g., "Identum" or "eAdm") to find the integration application.
-
In the application menu, select API permissions.
-
Click + Add a permission and select Microsoft Graph.
-
Select " App Permissions."
-
In the search box, type
AuditLog.ReadAlland select the checkbox for that permission. -
Click Add permissions.
-
Grant Admin Consent: On the API permissions screen, you must click the "Grant admin consent for [Your Tenant]" button. The status for the new permission must display a green checkmark and be listed as "Granted".
Warning: This permission will not take effect until the administrator has granted consent.
-
Activate the Import: Notify Identum support at support@identum.no and state that you have granted the permission and wish to activate the last logon import.
Use Case: Automated M365 License Downgrading
Once the AzureAdLastLogon Once this attribute is populated, you can use it to create powerful license management rules.
For example, you can create a rule that automatically assigns a cheaper license to users who haven't logged into Microsoft 365 for a specific period of time.
Example:
This rule assigns an M365 F3 license but excludes anyone who has not logged in for more than 90 days.
-
Attribute:
AzureAdLastLogon -
Condition:
After -
Argument:
Now - 90 days
You can combine this with a second rule that assigns those same inactive users a more basic license (e.g., Exchange Online only). This ensures that users who do not actively use their full M365 suite are automatically moved to a lower-cost plan, optimizing your license spending.
Note: Please contact us if you need assistance with Microsoft 365 license management. Optimizing these rules can result in significant savings.