Focal Point
[SOLVED] IBIMR parameter for Email Address?

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

April 14, 2017, 10:12 AM
Anatess
[SOLVED] IBIMR parameter for Email Address?
Hi all,

I was wondering if there's a parameter that would contain the Email Address from the user's profile on Security Center?

I have a fex that I want to email the report to the &IBIMR_User via EDAMAI but I need to retrieve his email address from his Security Center profile.

Thank you for your assistance.

Regards,
Anatess

This one is on WF8.1

This message has been edited. Last edited by: FP Mod Chuck,


WF 8.1.05 Windows
April 14, 2017, 12:29 PM
FP Mod Chuck
Hi Anatess

There is no IBIMR parameter that I am aware of. If the e-mail address is stored in your AD/LDAP directory you can use the LDAP Adapter (It is a free adapter) to look it up. It is a bit tricky setting up the ldap adapter as you have to have the right pointers (OU=) to where this information can be found in the configuration.

Hope this helps,


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
April 14, 2017, 02:37 PM
Anatess
Thank you very much for your help, Chuck.


WF 8.1.05 Windows
April 15, 2017, 05:35 PM
Francis Mariani
My two cents: I'm not sure why the email address is not exposed in an IBI MR parameter, it seems to make sense that it would be. It shouldn't be up to the customer to ask for it and then wait years for it to be deployed - this is the kind of thing that should be there out of the box.


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
April 15, 2017, 06:14 PM
Francis Mariani
Meanwhile, I would just write a utility program that I would include wherever needed. It would read the appropriate WebFOCUS Repository table, uoa_users:

-SET &ECHO='ALL';

SET SQLENGINE = MYSQL
SQL SET DEFAULT_CONNECTION webfocus8
-RUN

SQL
select
email 'EMAIL_ADDRESS'
from uoa_users
where name = '&IBIMR_user';
TABLE ON TABLE HOLD AS HOLD_EMAIL
END
-RUN

-SET &EMAIL_ADDRESS = '';

-READFILE HOLD_EMAIL

-TYPE &EMAIL_ADDRESS


You can either create metadata for the Repository table(s) and then use TABLE FILE, or use SQL passthru.

You can make the utility program more useful by also retrieving other user attributes, like Name, etc.

Note: Depending on your set up, you may have to include the schema name as prefix to the table name.

All this works only if the information was added to the WebFOCUS Security Center.


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
April 17, 2017, 11:34 AM
FP Mod Chuck
Anatess

I agree with Francis solution it is much easier to implement.

Thank you Francis!


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats