Display information about previous logons during user logon on AADJ

Sage Mirror 220 Reputation points
2023-07-27T08:35:13.75+00:00

Hi! Relative to my last question : (Can you display last logon information on a AADJ laptop?) (quick summary: AADJ devices can't use the migration of the GPO "Display information about previous logons during user logon" as it displays "Security policies on this computer are set to show information about the last interactive sign-in, but Windows couldn't retrieve that information. Contact your network administrator for help." instead)

So my question is: do you have any idea for a way to display this information to the user, as a notification preferably, as required by ISO 27K? Sending an e-mail would also be an option if a notification is really not possible.

Thank you!

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,815 questions
Microsoft Intune Compliance
Microsoft Intune Compliance
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Compliance: Adhering to rules, standards, policies, and laws.
147 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,756 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,678 questions
{count} votes

Accepted answer
  1. Peter Kayode 506 Reputation points
    2023-07-28T23:31:55.34+00:00

    Hi Sage Mirror

    Azure Active Directory Joined (AADJ) devices don't have the ability to use the traditional GPO "Display information about previous logons during user logon." However, you can still achieve similar functionality by leveraging other Azure AD and Microsoft 365 capabilities.

    You can create a solution to achieve this using Azure Functions, Logic Apps (like Marilee Turscak-MSFT mentioned) , and/or Power Automate, combined with Microsoft Graph API:

    Azure AD Sign-ins: Azure AD provides sign-in logs that include information such as UserID, UserPrincipalName, Application, IP Address, Location, etc. This information is accessible via the Microsoft Graph API.

    Azure Function: You can set up an Azure Function to periodically (or triggered by an event) pull the sign-in log information for a particular user using the Graph API. This function can parse the necessary information and prepare a message. The Azure Function could be triggered by a user's login event.

    Microsoft Graph Notification: You could use Microsoft Graph notifications to deliver a notification to the user's device, this requires your application to have the necessary permissions and configurations to send notifications to user devices.

    Email Alert: Similarly, you can use the Microsoft Graph API to send an email to the user with the last sign-in information.

    Here's an example of a sign-ins request using Microsoft Graph API:

    GET https://graph.microsoft.com/v1.0/auditLogs/signIns

    Remember, you would need the necessary permissions to read sign-in logs.

    This approach, however, requires custom development and may need regular maintenance based on the changes in the APIs and services.

    As always, when you collect, process, or store any user data, make sure to comply with all relevant privacy laws and company policies.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful