Hey Youll,
Is there an easy way to print out a list of EMR users in the system and their roles? I know you can go into Application users in Administration but I cant print from there. we have over 600 users. Please help.
I am assuming role = jobtitle .... This will pull all active accounts... You may have to build a crystal report if you want a basic user to routinely get this information.
-James
select LOGINNAME,LASTNAME,FIRSTNAME,jt.DESCRIPTION from USR as u
inner join JOBTITLE as jt on u.JOBTITLE = jt.JTID
where STATUS = 'A'
I have a crystal report from the Old Knowledge base that can give you this.
I sent it in a separate email to you.
James,
Thanks for that script! Can i filter that to show users who have logged in the past month?
select LOGINNAME,LASTNAME,FIRSTNAME,jt.DESCRIPTION,LAST_LOGIN_DATE from USR as u
inner join JOBTITLE as jt on u.JOBTITLE = jt.JTID
where STATUS = 'A'
and last_login_date > dateadd(dd,-30,CAST(GETDATE() AS DATE))