Ektron SQL – List All Users

| | | | | |

If you’re looking for more specific access lists look at Ektron – User Access List

SELECT user_id
	,[user_name]
	,[first_name]
	,[last_name]
	,[email_address1]
	,[email_address2]
	,[email_address3]
	,[address]
	,[latitude]
	,[longitude]
FROM [users] u
ORDER BY u.user_id
SELECT utgt.usergroup_id,
	ug.usergroup_name,
	utgt.user_id,
	[user_name],
	[first_name],
	[last_name],
	[email_address1],
	[email_address2],
	[email_address3],
	[address],
	[latitude],
	[longitude]
FROM [user_to_group_tbl] utgt
INNER JOIN [usergroups] ug ON ug.usergroup_id = utgt.usergroup_id
INNER JOIN [users] u ON u.user_id = utgt.user_id
ORDER BY ug.usergroup_name
Originally Posted on July 19, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.