User List per Application

Cory Coleman 1 Reputation point
2021-11-03T17:51:04.31+00:00

Hello,

I am trying to generate "Users List Per Application".

I have not been able to successfully find the right query for this. I attempted to modify the out of the box query

// User count per Application
// Distinct count of users by application.
SigninLogs
| project UserDisplayName, Identity,UserPrincipalName, AppDisplayName, AppId, ResourceDisplayName
| summarize UserCount=dcount(UserPrincipalName) by AppDisplayName

Microsoft Security Microsoft Sentinel
{count} votes

3 answers

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    2021-11-03T21:44:45.05+00:00

    Hi @Cory Coleman , I'm not sure what you're using this for but this solution may work for you: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/users-bulk-download

    You can bulk download a list of users with the portal, so no need for any queries. If this isn't what you're looking for please let me know and I can give you a better solution.

    If this answer helped you please mark it as "Verified" so other users may reference it.

    Thank you,
    James

    0 comments No comments

  2. Cory Coleman 1 Reputation point
    2021-11-03T21:54:57.197+00:00

    Hello James and thanks for the response.

    I am using Azure Sentinel. I would like to create a table that lists the users using a particular application.
    Distinct list of users by application.

    When I run the query below, it shows only the count of users whereas I need the actual list of users by username or display name for an application. I tried modifying the out-of-box query below to no avail. I keep getting close, but no ciger.
    // User count per Application
    // Distinct count of users by application.
    SigninLogs
    | project UserDisplayName, Identity,UserPrincipalName, AppDisplayName, AppId, ResourceDisplayName
    | summarize UserCount=dcount(UserPrincipalName) by AppDisplayName


  3. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2021-11-08T16:25:19.27+00:00

    Would this work?

    SigninLogs
    | project UserDisplayName, Identity,UserPrincipalName, AppDisplayName, AppId, ResourceDisplayName
    | summarize UserCount=dcount(UserPrincipalName), UserList=make_set(UserDisplayName) by AppDisplayName
    | order by UserCount desc

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.