August 16, 2007, 04:58 PM
newtofocusCapture user id on the reporting server.
I would like to check the user id and perform some actions on the reporting server. Is there any function that gives me user id? I heard of some function like CNCTUSR, but I cannot find any documentation regarding this.
Thanks.
August 16, 2007, 07:27 PM
RichHTry
-SET &&USERID = GETUSER('A32');
-TYPE &&USER
Regards,
Rich
August 16, 2007, 07:48 PM
Dave Ayersperhaps you are thinking of the
iwc.getappcgivalue("IBIC)user")
function ?
But I'm not sure of this works outside of Maintain - that is if it works all the time within !
August 17, 2007, 02:39 PM
newtofocusWe are running the reporting server in a pass thru mode. So we neeed to use CNCTUSR function. I have a requirement where I would like to stop a user id from executing a report. I have put the following code in edasprof, this works but the problem is it aborts the agent on the reporting server. Can any anone suggest a clean way of doing this.
-SET &USERID = CNCTUSR('A8');
-IF &USERID NE 'abcd' THEN GOTO OK;
-QUIT FOCUS
-RUN
-OK
-TYPE OK
August 17, 2007, 02:41 PM
Bryan KlimekTry this:
-SET &USERID=GETUSER('A8');
-TYPE USERID=&USERID
-SET &USRID=CNCTUSR(`A8');
-TYPE USRID=&USRID