Focal Point
[SOLVED] Security API

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

June 18, 2015, 09:09 AM
GavinL
[SOLVED] Security API
Has anyone worked with WebFOCUS API? If so, does it have a security API? We are building some custom pages, that have our own tabs and are looking to make those tabs visible or hidden based on the end user roles. Any direction or documentation would be great.

Thanks,
Gavin

This message has been edited. Last edited by: GavinL,



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
June 18, 2015, 09:51 AM
GavinL
Somehow through my Internet hoping, I ran into this.

http://www.informationbuilders...letter/15_02/06efrem

Looks like it might be the one I'm looking for.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
June 18, 2015, 10:08 AM
eric.woerle
Gavin,

I am unaware of any API that would allow you to supply security. What I would do is use the security group functions like GRPLIST(), IBIMR_memberof etc. Grab the groups associated with the user and then hide/show the tab as needed. Or you can include/not include the tab code etc.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
June 18, 2015, 11:07 AM
GavinL
I looked into IBIMR_memberof, but webfocus doesn't seem to know what that is. I'm using 8.1.04 so maybe it's legacy. GRPLIST(), I didn't know about, but looks like it pulls back groups, which I could use. Any other security methods that could be helpful?

I was looking around and found GETUSER, but it seems to always return SYSTEM, no matter who I'm logged in as. Though GRPLIST does change depending on who I log in as.

-SET &USER = GETUSER('A20');
-TYPE &USER

-SET &LIST = GRPLIST(300, 'A300');
-TYPE &LIST




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
June 18, 2015, 11:34 AM
Francis Mariani
IBIMR_memberof is available by adding it to the Custom Settings in the Admin Console.

This is what we have for MRE-related variables:

# --- Documentation: http://techsupport.information...cAdmin/wf8008sec.pdf
# --- WebFOCUS Security and Administration > Manipulating WebFOCUS Variables > Managed Reporting Internal Variables

# Managed Reporting Internal Variables

# The folder where the processed report is stored
<SET> IBIMR_folder (pass)

# The complete path for a procedure, including file name and extension
<SET> IBIMR_fullpath (pass)

# The domain HREF where the report being processed is stored
<SET> IBIMR_domain (pass)

# The description given to the report by the developer
<SET> MR_FULL_FEXNAME (pass)

# The file name (also known as the IBFS name) assigned to the report when it was created
<SET> MR_ITEM_HANDLE (pass)

<SET> IBIMR_memberof(pass)



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 18, 2015, 12:13 PM
eric.woerle
there is also &FOCSECGROUP which returns the primary group of the user. And I think they introduced &FOCSECGROUPS in 8009 for the full list of groups. I can't remember if it picks up the reporting server groups or the Web Client groups....


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
June 18, 2015, 12:21 PM
GavinL
quote:
IBIMR_memberof is available by adding it to the Custom Settings in the Admin Console.


Thanks to you both.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server