Automic Workload Automation

Expand all | Collapse all

SQL Query

  • 1.  SQL Query

    Posted 6 days ago
    ​Does someone have a MS SQL query to extract a list of users, the Automic group assigned to each of the user for a specific client or group by clients?


  • 2.  RE: SQL Query

    Posted 6 days ago
    Edited by Pete Wirfs 6 days ago
    select oh2.oh_name as 'GROUP'
         , oh2.oh_client as 'CLIENT'
         , replace(oh1.oh_name,'/SAIF','') as 'USER'     
    	 , case USR_Active	 
    	      when 0 then 'DEACTIVATED'
    	      else ' '
    	   end as STATE
    	 , USR_LastSession as LAST_USED
    from   oh as oh1
          ,oh as oh2
    	  ,usr
    	  ,usrg
    	  ,USG 
    where oh1.oh_idnr=USR_OH_Idnr
    and   USRG_USR_Idnr=USR_OH_Idnr 
    and   usrg_usg_idnr = usg_oh_idnr
    and   USG_OH_Idnr=oh2.oh_idnr 
    order by 1, 2, 3


    ------------------------------
    Pete
    ------------------------------



  • 3.  RE: SQL Query

    Posted 6 days ago
    ​Thank you Pete!