Notification

Icon
Error

Office 365: Users (Built-in)

Posted: Tuesday, March 5, 2019 1:00:27 PM(UTC)
Esben.D

Esben.D

Member Administration Original PosterPosts: 1,768
0
Like
The report below gives back a list of Office 365 users.

The report will only list users when the following criteria are met:
  • You have Lansweeper 7.1 or higher.
  • There is Office 365 user data scanned.

Code:
Select Top 1000000 'user.png' As Icon,
  tblO365User.DisplayName,
  tblO365User.UserPrincipalName,
  tblADusers.Username,
  tblADusers.Userdomain,
  tblO365User.AccountEnabled As Enabled,
  tblO365User.Department,
  tblO365User.Mail,
  tblO365User.ResetPasswordOnNextLogon,
  tblO365Organization.DisplayName As Organization,
  tblO365Organization.TenantId
From tblO365User
  Inner Join tblO365Organization On tblO365User.OrganizationId =
    tblO365Organization.OrganizationId
  Left Outer Join tblADusers On tblADusers.UPN = tblO365User.UserPrincipalName
Order By tblO365User.DisplayName
JTempleton
#1JTempleton Member Posts: 40  
posted: 3/28/2019 4:59:09 PM(UTC)
Good day!

If i needed to add a column to show which license each user was using, which field would I use?

Thanks!

Active Discussions

Lansweeper Active Assets Versus Non-Active
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 9:29:26 PM(UTC)
Report Center Low Hard Disk Space (coloured) - Win+Linux
by  Olivier J.  
Go to last post Go to first unread
Last post: Yesterday at 4:16:02 PM(UTC)
Lansweeper check if process is running report
by  Randomusername   Go to last post Go to first unread
Last post: Yesterday at 3:29:16 PM(UTC)
Lansweeper Top 10 users submitting tickets
by  ChuckSchurman  
Go to last post Go to first unread
Last post: 8/22/2019 3:53:21 AM(UTC)
Lansweeper Identifying weak protocols
by  Jason Tree   Go to last post Go to first unread
Last post: 8/20/2019 3:06:03 PM(UTC)
Lansweeper Ticket Report Overview
by  briangmiller  
Go to last post Go to first unread
Last post: 8/20/2019 1:49:35 PM(UTC)
Lansweeper switch ports with multiple assets
by  FischbachM   Go to last post Go to first unread
Last post: 8/19/2019 9:10:42 AM(UTC)
Lansweeper Modify "....less than 1GB free HD..." Report
by  Cripple.Zero  
Go to last post Go to first unread
Last post: 8/15/2019 7:11:10 PM(UTC)