| Products | Versions |
|---|---|
| Spotfire Server | 14.7.0 and above |
By pulling data directly from the Spotfire Server database (USERS table), we can extract the LAST_LOGIN timestamp associated with each unique username. This allows us to instantly check the exact last time a user account established a session with the Spotfire Server.
Execute the following SQL query against your Spotfire Server database to extract a complete list of Inactive users.
All
SELECT
USER_NAME AS [User_Name],
-- The official column name in the Spotfire schema is LAST_LOGIN
LAST_LOGIN AS [Last_Login_Time],
DATEDIFF(day, LAST_LOGIN, GETUTCDATE()) AS [Days_Since_Last_Login],
-- Status calculation
CASE
WHEN LAST_LOGIN IS NULL THEN 'Never Logged In'
WHEN DATEDIFF(day, LAST_LOGIN, GETUTCDATE()) >= 90 THEN 'Inactive > 90 days'
ELSE 'Active'
END AS [Account_Status]
FROM
USERS
WHERE
-- Filters for users inactive for 90+ days OR users who have never logged in
LAST_LOGIN IS NULL
OR DATEDIFF(day, LAST_LOGIN, GETUTCDATE()) >= 90
ORDER BY
[Last_Login_Time] ASC;
Over time, users leave the organization or change roles, but their Spotfire accounts remain active, taking up valuable licenses (Analyst, Business Author, Consumer). This audit helps admins identify who hasn't logged in for a specified period (e.g., 90+ days) so they can disable or delete them.
Doc: delete-user -
Doc: Deleting users from the system -
Doc: Disabling user accounts -