Skip to content

Commit 91d2cd5

Browse files
Merge pull request #233341 from FaithOmbongi/patch-2
signInActivity is now in GA
2 parents c39afa2 + c66f0aa commit 91d2cd5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/active-directory/reports-monitoring/howto-manage-inactive-user-accounts.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ The last successful sign-in provides potential insights into a user's continued
3636

3737
You detect inactive accounts by evaluating the **lastSignInDateTime** property exposed by the **signInActivity** resource type of the **Microsoft Graph** API. The **lastSignInDateTime** property shows the last time a user made a successful interactive sign-in to Azure AD. Using this property, you can implement a solution for the following scenarios:
3838

39-
- **Users by name**: In this scenario, you search for a specific user by name, which enables you to evaluate the lastSignInDateTime: `https://graph.microsoft.com/beta/users?$filter=startswith(displayName,'markvi')&$select=displayName,signInActivity`
39+
- **Users by name**: In this scenario, you search for a specific user by name, which enables you to evaluate the lastSignInDateTime: `https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'markvi')&$select=displayName,signInActivity`
4040

41-
- **Users by date**: In this scenario, you request a list of users with a lastSignInDateTime before a specified date: `https://graph.microsoft.com/beta/users?filter=signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z`
41+
- **Users by date**: In this scenario, you request a list of users with a lastSignInDateTime before a specified date: `https://graph.microsoft.com/v1.0/users?$filter=signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z`
4242

4343
> [!NOTE]
4444
> There may be the need to generate a report of the last sign in date of all users, if so you can use the following scenario.
45-
> **Last Sign In Date and Time for All Users**: In this scenario, you request a list of all users, and the last lastSignInDateTime for each respective user: `https://graph.microsoft.com/beta/users?$select=displayName,signInActivity`
45+
> **Last Sign In Date and Time for All Users**: In this scenario, you request a list of all users, and the last lastSignInDateTime for each respective user: `https://graph.microsoft.com/v1.0/users?$select=displayName,signInActivity`
4646
4747
## What you need to know
4848

4949
This section lists what you need to know about the lastSignInDateTime property.
5050

5151
### How can I access this property?
5252

53-
The **lastSignInDateTime** property is exposed by the [signInActivity resource type](/graph/api/resources/signinactivity?view=graph-rest-beta&preserve-view=true) of the [Microsoft Graph API](/graph/overview#whats-in-microsoft-graph).
53+
The **lastSignInDateTime** property is exposed by the [signInActivity resource type](/graph/api/resources/signinactivity) of the [Microsoft Graph API](/graph/overview#whats-in-microsoft-graph).
5454

5555
> [!NOTE]
56-
> The signInActivity resource type is available only on the Microsoft Graph `beta` endpoint and isn't yet supported in US Government GCC High environments.
56+
> The signInActivity resource type isn't yet supported in US Government GCC High environments.
5757
5858
### Is the lastSignInDateTime property available through the Get-AzureAdUser cmdlet?
5959

@@ -65,10 +65,11 @@ To access this property, you need an Azure Active Directory Premium edition.
6565

6666
### What permission do I need to read the property?
6767

68-
To read this property, you need to grant the following rights:
68+
To read this property, you need to grant the app the following Microsoft Graph permissions:
6969

7070
- AuditLog.Read.All
7171
- Directory.Read.All
72+
- User.Read.All
7273

7374

7475
### When does Azure AD update the property?

0 commit comments

Comments
 (0)