I'm used Authentication/LoginTrackingEnabled but it didn't work.
Is there any other way to get login time information?
Hi @anhhd ,
The login tracking feature has been deprecated(mentioned in Audit logging section).
It is recommended to use an analytics technology like Azure Application Insights to capture this kind of information. To setup Azure Application Insights for web applications, refer to this article to find the details on how to set it up and obtain a JavaScript code snippet.
Once the JavaScript code snippet is obtained, it can be added to the Page Tracking content snippet available in your portal configurations or added to the Header web template to capture standard events. To capture information like contact records related to user, refer to custom event support of Azure Application Insights as described here.
Reference:
Best regards,
Allen
@v-albai-msft thank for your help,
After successful login, the login time information will be saved to the table
Then display the information on the portal for each user.
The above requirement I find using Azure Application Insights is not very reasonable.
I plan to use flow so that after login will save the login time information to the table. (use sessionStorage to mark the time after successful login, after logout will delete this sessionStorage)
Hi @anhhd ,
Yes, the final method to be used will depend on your actual needs. At least for your needs, Flow is perfectly enough.
Best regards,
Allen