Focal Point
Capture user id on the reporting server.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6751052242

August 16, 2007, 04:58 PM
newtofocus
Capture 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.


WF7.1.4 Prod/Test, MRE, self serve, DM
August 16, 2007, 07:27 PM
RichH
Try
-SET &&USERID = GETUSER('A32');
-TYPE &&USER
Regards,
Rich


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
August 16, 2007, 07:48 PM
Dave Ayers
perhaps 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 ! Smiler


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
August 17, 2007, 02:39 PM
newtofocus
We 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


WF7.1.4 Prod/Test, MRE, self serve, DM
August 17, 2007, 02:41 PM
Bryan Klimek
Try this:

-SET &USERID=GETUSER('A8');
-TYPE USERID=&USERID
-SET &USRID=CNCTUSR(`A8');
-TYPE USRID=&USRID